sendou.ink/prisma/queries/getAllPlayersByPID.ts
Kalle (Sendou) 7741056028 pid page
2021-02-08 19:23:13 +02:00

13 lines
338 B
TypeScript

import { Prisma } from "@prisma/client";
import prisma from "prisma/client";
export type GetAllPlayersByPIDData = Prisma.PromiseReturnType<
typeof getAllPlayersByPID
>;
export const getAllPlayersByPID = async (principalId: string) =>
prisma.player.findMany({
where: { principalId },
select: { switchAccountId: true },
});