{"record":{"id":"7660f1f415517869","repo":"diegosouzapw/OmniRoute","slug":"quota-pools-removequotacombosforpool-failed-non","errorCode":null,"errorMessage":"[quota-pools] removeQuotaCombosForPool failed (non-fatal):","messagePattern":"\\[quota-pools\\] removeQuotaCombosForPool failed \\(non-fatal\\):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/db/quotaPools.ts","lineNumber":51,"sourceCode":"  return current;\n}\n\nasync function syncQuotaCombosGuarded(poolId: string): Promise<void> {\n  try {\n    const { syncQuotaCombos } = await import(\"@/lib/quota/quotaCombos\");\n    await syncQuotaCombos(poolId);\n  } catch (err) {\n    // Guard: combo-sync failure must never break pool CRUD callers.\n    console.warn(\"[quota-pools] syncQuotaCombos failed (non-fatal):\", (err as Error)?.message);\n  }\n}\n\nasync function removeQuotaCombosGuarded(poolId: string): Promise<void> {\n  try {\n    const { removeQuotaCombosForPool } = await import(\"@/lib/quota/quotaCombos\");\n    await removeQuotaCombosForPool(poolId);\n  } catch (err) {\n    console.warn(\n      \"[quota-pools] removeQuotaCombosForPool failed (non-fatal):\",\n      (err as Error)?.message,\n    );\n  }\n}\n\n// ---------------------------------------------------------------------------\n// Local type shapes (aligned with src/lib/quota/dimensions.ts — merged by F7)\n// ---------------------------------------------------------------------------\n\ntype QuotaUnit = \"percent\" | \"requests\" | \"tokens\" | \"usd\";\ntype Policy = \"hard\" | \"soft\" | \"burst\";\n\nexport interface PoolAllocation {\n  apiKeyId: string;\n  weight: number;\n  capValue?: number;\n  capUnit?: QuotaUnit;","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/db/quotaPools.ts#L33-L69","documentation":"Error \"[quota-pools] removeQuotaCombosForPool failed (non-fatal):\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/db/quotaPools.ts:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}