fix: Throw not found error for authentication

This commit is contained in:
Faruk AYDIN
2024-02-14 13:06:29 +01:00
parent 02ae67b147
commit 69727e78df

View File

@@ -20,7 +20,8 @@ export const isAuthenticated = async (_parent, _args, req) => {
.withGraphFetched({ .withGraphFetched({
role: true, role: true,
permissions: true, permissions: true,
}); })
.throwIfNotFound();
return true; return true;
} catch (error) { } catch (error) {