mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[dsmp] filter notifying authors on their actions (#28429)
GitOrigin-RevId: c1186c84d9b1e885081ba2ea30cbdb6277192bc0
This commit is contained in:
committed by
Copybot
parent
f4dce55ee9
commit
34ea7058a1
@@ -203,7 +203,7 @@ async function clearProjectState(projectId) {
|
||||
* @param {string} docId
|
||||
* @param {string[]} changeIds
|
||||
*/
|
||||
async function acceptChanges(projectId, docId, changeIds) {
|
||||
async function acceptChanges(projectId, docId, changeIds, userId) {
|
||||
await fetchNothing(
|
||||
`${BASE_URL}/project/${projectId}/doc/${docId}/change/accept`,
|
||||
{
|
||||
@@ -212,7 +212,8 @@ async function acceptChanges(projectId, docId, changeIds) {
|
||||
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
|
||||
}
|
||||
)
|
||||
await Modules.promises.hooks.fire('changesAccepted', projectId, docId)
|
||||
|
||||
await Modules.promises.hooks.fire('changesAccepted', projectId, docId, userId)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user