Allows both username and userid availability
parent
f335678a78
commit
a3e05ff98c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue