mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 03:10:38 +09:00
fix(issues): support hidden issue flows and filter hidden activity
This commit is contained in:
parent
8f3fc077fa
commit
f766478f5a
6 changed files with 50 additions and 8 deletions
|
|
@ -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" });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue