From b377c3656cf7e2e276c8b8758fed628f6b997a58 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 17 Nov 2026 15:58:02 +0100 Subject: [PATCH] fix(oauth): narrow the refused registration for the strict compiler --- server/src/nest/oauth/oauth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/nest/oauth/oauth.service.ts b/server/src/nest/oauth/oauth.service.ts index 0d4c30fdf..55996f9d8 100644 --- a/server/src/nest/oauth/oauth.service.ts +++ b/server/src/nest/oauth/oauth.service.ts @@ -228,7 +228,7 @@ export class OauthService { }), }; }); - if ('refused' in inserted) return inserted.refused; + if ('refused' in inserted && inserted.refused) return inserted.refused; const row = inserted.row; await this.audit.writeAudit({