MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getDatabaseClient

Function getDatabaseClient

apps/web/src/lib/impact/referral.ts:52–54  ·  view source on GitHub ↗
(database?: DatabaseClient)

Source from the content-addressed store, hash-verified

50const IMPACT_ADVOCATE_REGISTRATION_CLAIM_STALE_MS = 15 * 60 * 1000;
51
52function getDatabaseClient(database?: DatabaseClient): DatabaseClient {
53 return database ?? db;
54}
55
56function productForProgramKey(programKey: ImpactAdvocateProgramKey): ImpactReferralProduct {
57 return programKey === ImpactAdvocateProgramKey.KiloPass

Calls

no outgoing calls

Tested by

no test coverage detected