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

Function crossedUp

apps/sim/lib/table/billing.ts:21–23  ·  view source on GitHub ↗

Whether adding rows pushed the count UP across `threshold` (pre below, post at/above).

(prePct: number, postPct: number, threshold: number)

Source from the content-addressed store, hash-verified

19
20/** Whether adding rows pushed the count UP across `threshold` (pre below, post at/above). */
21function crossedUp(prePct: number, postPct: number, threshold: number): boolean {
22 return prePct < threshold && postPct >= threshold
23}
24
25/**
26 * Best-effort table row-limit email after an accepted insert. Resolves the

Callers 1

notifyTableRowUsageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected