Allows both username and userid availability

pull/3052/head
zomars 2022-06-14 15:23:18 -06:00
parent f335678a78
commit a3e05ff98c
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ const getUser = (where: Prisma.UserWhereUniqueInput) =>
type User = Awaited<ReturnType<typeof getUser>>;
export async function getUserAvailability(
query: ({ username: string } | { userId: number }) & {
query: {
username?: string;
userId?: number;
dateFrom: string;
dateTo: string;
eventTypeId?: number;