@cloud-cli/on 1.7.7 → 1.7.8

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.
Files changed (2) hide show
  1. package/dist/on.js +1 -1
  2. package/package.json +1 -1
package/dist/on.js CHANGED
@@ -4470,7 +4470,7 @@ var pi = class {
4470
4470
  }
4471
4471
  async restartJob(e) {
4472
4472
  let t = await this.getJob(e);
4473
- if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) (SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ?) RETURNING *", [e])).id;
4473
+ if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ? RETURNING *", [e])).id;
4474
4474
  }
4475
4475
  async isCancelled(e) {
4476
4476
  return (await S.get("SELECT status FROM jobs WHERE id = ?;", [+e]))?.status === "cancelled";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",