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

Function updateOrderForTable

apps/sim/lib/knowledge/documents/lock-order.test.ts:18–24  ·  view source on GitHub ↗

invocationCallOrder of the first `tx.update(table)` call.

(table: unknown)

Source from the content-addressed store, hash-verified

16
17/** invocationCallOrder of the first `tx.update(table)` call. */
18function updateOrderForTable(table: unknown): number {
19 const { calls, invocationCallOrder } = dbChainMockFns.update.mock
20 for (let i = 0; i < calls.length; i++) {
21 if (calls[i][0] === table) return invocationCallOrder[i]
22 }
23 return -1
24}
25
26describe('updateDocument lock ordering', () => {
27 beforeEach(() => {

Callers 1

lock-order.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected