Allows both username and userid availability

This commit is contained in:
zomars
2022-06-14 15:23:18 -06:00
parent f335678a78
commit a3e05ff98c
+3 -1
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;