mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
getQuotaStore() is async; enforce.ts used it without await, so store was a Promise and store.peek/store.consume threw 'not a function' → enforceQuotaShare failed open on every request and recordConsumption never wrote. Production quota was a silent no-op (unit tests passed because they inject a sync mock store). Await it + guard.