Skip to content

Commit

Permalink
fix: another lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca committed Apr 17, 2024
1 parent 250028f commit ec0c82b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/directives/checkUserAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ export async function checkUserOrAdminTokenAccess(
})
authUser = null
} else {
const user = await getActiveUserByEmail(
const user = (await getActiveUserByEmail(
null,
{ email: authUser?.user },
ctx
) as { roleId: string } | null
)) as { roleId: string } | null

if (!user?.roleId) {
logger.warn({
message: `CheckUserAccess: No valid role for user found by store user token`,
Expand Down

0 comments on commit ec0c82b

Please sign in to comment.