ui: inprogress version of iam

This commit is contained in:
Andras Bacsai committed 2022-09-29 15:46:52 +02:00
1 parent 3f76cadea9
commit 51b3293e69
7 files changed
+246 -26

No files matched your search

+2
View File
@@ -353,8 +353,10 @@ export async function getCurrentUser(
// No new token -> not switching teams
}
}
const pendingInvitations = await prisma.teamInvitation.findMany({ where: { uid: request.user.userId } })
return {
settings: await prisma.setting.findFirst(),
pendingInvitations,
supportedServiceTypesAndVersions,
token,
...request.user,