ework-web 0.10.51 → 0.10.52

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/package.json +1 -1
  2. package/src/index.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.51",
3
+ "version": "0.10.52",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -1116,7 +1116,7 @@ async function handle(req: Request, url: URL, ip: string, ctx: { authed: boolean
1116
1116
  `SELECT internal_endpoint AS endpoint, status FROM {{d_daemons}} WHERE id = ?`, [id]
1117
1117
  );
1118
1118
  if (rows.length === 0) return json({ ok: false, error: "daemon not found" }, 404);
1119
- await getDB().run(`UPDATE {{d_daemons}} SET status = 'active', last_heartbeat = datetime('now') WHERE id = ?`, [id]);
1119
+ await getDB().run(`UPDATE {{d_daemons}} SET status = 'active', last_heartbeat = ? WHERE id = ?`, [new Date().toISOString(), id]);
1120
1120
  return json({ ok: true, note: "reactivated — daemon process will re-register via heartbeat" });
1121
1121
  }
1122
1122