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

Function stripGroupExecutions

apps/sim/lib/table/rows/executions.ts:336–348  ·  view source on GitHub ↗
(
  trx: DbOrTx,
  tableId: string,
  groupIds: Iterable<string>
)

Source from the content-addressed store, hash-verified

334 * in their own transaction.
335 */
336export async function stripGroupExecutions(
337 trx: DbOrTx,
338 tableId: string,
339 groupIds: Iterable<string>
340): Promise<void> {
341 const ids = Array.from(new Set(groupIds))
342 if (ids.length === 0) return
343 await trx
344 .delete(tableRowExecutions)
345 .where(
346 and(eq(tableRowExecutions.tableId, tableId), inArray(tableRowExecutions.groupId, ids)) as SQL
347 )
348}

Callers 3

deleteWorkflowGroupFunction · 0.90
deleteColumnFunction · 0.90
deleteColumnsFunction · 0.90

Calls 2

deleteMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected