Files
TREK/server/tests/helpers/google-quota.ts
T
Maurice 7acf7f5655 feat(admin): a daily limit on Google API calls
Admin > Settings > Google options gets a daily limit with today's count beside it. Every call through the Places and Routes clients is counted per UTC day; once the limit is reached the Google key reads as absent until the next day, so search, details and photos fall back to OpenStreetMap the way a keyless install does, and the admin sees that the day is used up. (#1582)
2026-10-01 12:15:38 +02:00

5 lines
313 B
TypeScript

import type { GoogleQuotaService } from '../../src/nest/google-quota/google-quota.service';
/** A Google quota that never runs out and counts nothing, for tests that build MapsService by hand (#1582). */
export const noGoogleQuota = { exhausted: () => false, record: () => {} } as unknown as GoogleQuotaService;