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.
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
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 =
|
|
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
|
|