mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-14 15:00:54 -05:00
13 lines
338 B
TypeScript
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 },
|
|
});
|