Reject tracked changes notifications (#32917)
* [web] Reject tracked changes notifications feat: adding new tests feat: adding rejected changes notifications feat: adding tests for rejectchanges feat: updating tests for rejecting notifications; feat: adding in rejecting user, and improving subject and activity line fix: moving to a params object instead of positionals for email building feat: updating to use events triggered from applyUpdate in document-updater feat: updating to send rejected author ids with rejected change notification instead of change ids feat: moving rejected author notification determination to updateManager instead of RangesManager, which is used by other paths feat: only map to author if changes were made * fix: gate by user status not project status * fix: unit tests post-rebase --------- Co-authored-by: Kristina Hjertberg <kristina.hjertberg@overleaf.com> GitOrigin-RevId: f992e1885c47d1a6cf776740769d6d4763f3cb7c
This commit is contained in:
committed by
Copybot
co-authored by
Kristina Hjertberg
parent
5e3561aedc
commit
bc2f5ae746
@@ -107,13 +107,13 @@ async function setDocument(req, res) {
|
||||
|
||||
async function trackChangesRejected(req, res) {
|
||||
const { Project_id: projectId, doc_id: docId } = req.params
|
||||
const { rejectedChangeIds, userId } = req.body
|
||||
const { rejectedChangeAuthorIds, userId } = req.body
|
||||
await Modules.promises.hooks.fire(
|
||||
'trackChangesRejected',
|
||||
projectId,
|
||||
docId,
|
||||
rejectedChangeIds,
|
||||
userId
|
||||
userId,
|
||||
rejectedChangeAuthorIds
|
||||
)
|
||||
res.sendStatus(204)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user