hotsheet 0.15.3 → 0.15.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.
- package/dist/cli.js +6 -3
- package/dist/client/app.global.js +19 -19
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -21178,9 +21178,12 @@ ticketRoutes.patch("/tickets/:id", async (c) => {
|
|
|
21178
21178
|
const keepRead = c.req.header("X-Hotsheet-User-Action") === "true";
|
|
21179
21179
|
const ticket = await updateTicket(id, parsed.data, { keepRead });
|
|
21180
21180
|
if (!ticket) return c.json({ error: "Not found" }, 404);
|
|
21181
|
-
|
|
21182
|
-
|
|
21183
|
-
|
|
21181
|
+
const isReadTrackingOnly = Object.keys(parsed.data).length === 1 && parsed.data.last_read_at !== void 0;
|
|
21182
|
+
if (!isReadTrackingOnly) {
|
|
21183
|
+
notifyMutation(c.get("dataDir"));
|
|
21184
|
+
void onTicketChanged(id, parsed.data).catch(() => {
|
|
21185
|
+
});
|
|
21186
|
+
}
|
|
21184
21187
|
return c.json(ticket);
|
|
21185
21188
|
});
|
|
21186
21189
|
ticketRoutes.delete("/tickets/:id", async (c) => {
|