@smthrs/control 1.0.0-rc.3 → 1.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,7 +396,8 @@ const makeRuntime = (options = {}) => {
396
396
  // so the walk stops at one rather than telling a reader that a run
397
397
  // which can proceed cannot.
398
398
  ...(pendingWaits === undefined ? {} : { pendingWaits }),
399
- ...(pendingWaits === undefined || !pendingWaits.some((wait) => wait.reason === ControlExecutor.humanWaitReason) || terminal(base.status)
399
+ ...(pendingWaits === undefined || !pendingWaits.some((wait) => wait.reason === ControlExecutor.humanWaitReason) ||
400
+ terminal(base.status)
400
401
  ? {}
401
402
  : { status: "waiting-approval" }),
402
403
  ...(pendingResume === undefined ? {} : { pendingResume }),
@@ -925,7 +926,6 @@ const makeRuntime = (options = {}) => {
925
926
  // One JSON parameter, so a trigger's whole ledger never meets the bind-variable limit.
926
927
  const ids = JSON.stringify([...new Set(filters.runIds)]);
927
928
  conditions.push(sql.onDialectOrElse({
928
- /* v8 ignore next -- PostgreSQL adapter; covered by //packages/smithers/control:postgresInventory */
929
929
  pg: () => sql `runs.run_id IN (SELECT jsonb_array_elements_text(${ids}::jsonb))`,
930
930
  orElse: () => sql `runs.run_id IN (SELECT value FROM json_each(${ids}))`
931
931
  }));