mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 14:31:10 -05:00
* move filteroption in props, userselector update * revert test changes * small fix + refactoring
23 lines
461 B
TypeScript
23 lines
461 B
TypeScript
import { Prisma } from "@prisma/client";
|
|
import prisma from "prisma/client";
|
|
|
|
export type GetAllUsersLeanData = Prisma.PromiseReturnType<
|
|
typeof getAllUsersLean
|
|
>;
|
|
|
|
export const getAllUsersLean = async () =>
|
|
prisma.user.findMany({
|
|
select: {
|
|
id: true,
|
|
username: true,
|
|
discriminator: true,
|
|
discordAvatar: true,
|
|
discordId: true,
|
|
profile: {
|
|
select: {
|
|
twitterName: true,
|
|
},
|
|
},
|
|
},
|
|
});
|