mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-28 01:28:37 +02:00
add: idk
This commit is contained in:
@@ -8,7 +8,9 @@ interface GetAccountsParameters {
|
||||
skip?: number;
|
||||
}
|
||||
|
||||
export async function getAccounts(args?: GetAccountsParameters): Promise<Pick<Users, "id" | "firstName" | "lastName" | "isAdmin" | "isTeacher">[]> {
|
||||
export type Account = Pick<Users, "id" | "firstName" | "lastName" | "isAdmin" | "isTeacher">;
|
||||
|
||||
export async function getAccounts(args?: GetAccountsParameters): Promise<Account[]> {
|
||||
return await prisma.users.findMany({
|
||||
take: args?.take,
|
||||
skip: args?.skip,
|
||||
|
||||
Reference in New Issue
Block a user