remove lucia

This commit is contained in:
Milo Schwartz
2024-10-13 17:13:47 -04:00
parent f14fb90ab6
commit 99d6cababa
39 changed files with 234 additions and 167 deletions

View File

@@ -95,7 +95,7 @@ export async function createResource(req: Request, res: Response, next: NextFunc
if (req.userOrgRoleId != superuserRole[0].roleId) {
// make sure the user can access the resource
await db.insert(userResources).values({
userId: req.user?.id!,
userId: req.user?.userId!,
resourceId: newResource[0].resourceId,
});
}