Fix/user creds (#8393)

* fix-user-creds

* Type fixes

* Type fixes

* Type fixes

---------

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
alannncandAlex van Andel authored and GitHub committed 2023-04-20 15:55:19 +00:00
1 parent c1c95f711b
commit fe996b4e41
13 files changed
+92 -39

No files matched your search

+4 -1
View File
@@ -70,7 +70,10 @@ type EventType = Awaited<ReturnType<typeof getEventType>>;
const getUser = (where: Prisma.UserWhereUniqueInput) =>
prisma.user.findUnique({
where,
select: availabilityUserSelect,
select: {
...availabilityUserSelect,
credentials: true,
},
});
type User = Awaited<ReturnType<typeof getUser>>;