fix(issues): support hidden issue flows and filter hidden activity

This commit is contained in:
Forgotten
2026-02-20 07:11:06 -06:00
parent 8f3fc077fa
commit f766478f5a
6 changed files with 50 additions and 8 deletions

View File

@@ -186,7 +186,10 @@ export function issueRoutes(db: Db) {
}
assertCompanyAccess(req, existing.companyId);
const { comment: commentBody, ...updateFields } = req.body;
const { comment: commentBody, hiddenAt: hiddenAtRaw, ...updateFields } = req.body;
if (hiddenAtRaw !== undefined) {
updateFields.hiddenAt = hiddenAtRaw ? new Date(hiddenAtRaw) : null;
}
const issue = await svc.update(id, updateFields);
if (!issue) {
res.status(404).json({ error: "Issue not found" });