parseWindowKey
@forge/monorepo / backend/src / parseWindowKey
Function: parseWindowKey()
parseWindowKey(
key):QuotaWindow|null
Defined in: backend/src/persistence/index.ts:626
null for anything this does not recognise — a row written by a newer version, or by hand.
Null rather than a thrown error or a calendar fallback. A fallback would silently enforce the wrong window, which for a spend limit means either refusing people wrongly or charging them wrongly; null makes the caller decide, and every caller here treats it as "no limit I can honour", which fails towards not pretending.
Parameters
key
string
Returns
QuotaWindow | null