Skip to content

Commit 8c66d4f

Browse files
committed
Fix session not being re-established with edgedb query
1 parent 9220438 commit 8c66d4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/authentication/authentication.edgedb.repository.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ export class AuthenticationEdgeDBRepository
108108
),
109109
}));
110110
const result = await this.db.run(query);
111+
if (!result) {
112+
return undefined;
113+
}
111114
return {
112115
userId: result?.user?.id,
113116
roles: result?.user?.scopedRoles ?? [],

0 commit comments

Comments
 (0)