Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(oauth): narrow the refused registration for the strict compiler

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