MCPcopy Index your code
hub / github.com/simstudioai/sim / wouldExceedRowLimit

Function wouldExceedRowLimit

apps/sim/lib/table/billing.ts:189–195  ·  view source on GitHub ↗
(
  limit: number,
  currentRowCount: number,
  addedRows: number
)

Source from the content-addressed store, hash-verified

187 * message) stay consistent with {@link assertRowCapacity}.
188 */
189export function wouldExceedRowLimit(
190 limit: number,
191 currentRowCount: number,
192 addedRows: number
193): boolean {
194 return limit >= 0 && currentRowCount + addedRows > limit
195}
196
197/**
198 * Best-effort capacity check against the workspace's CURRENT plan limit.

Callers 4

billing.test.tsFile · 0.90
upsertRowFunction · 0.90
route.tsFile · 0.90
assertRowCapacityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected