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({