mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 22:46:32 +00:00
7acf7f5655
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)
5 lines
313 B
TypeScript
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;
|