Parcourir la source

[dsmp] Add a route for accepting changes (#27398)

* [dsmp] Add a route for accepting changes

* change the payload to accept both change id and range

* remove project lookup

* Remove try/catch from DsMobileAppManager test

GitOrigin-RevId: afd4f793e9389cad97555cfb6675944e5fcf9b84
Domagoj Kriskovic il y a 1 an
Parent
commit
c41a451f98

+ 6 - 0
services/web/app/src/Features/DocumentUpdater/DocumentUpdaterHandler.js

@@ -227,6 +227,12 @@ function clearProjectState(projectId, callback) {
   )
   )
 }
 }
 
 
+/**
+ * @param {string} projectId
+ * @param {string} docId
+ * @param {string[]} changeIds
+ * @param {Callback} callback
+ */
 function acceptChanges(projectId, docId, changeIds, callback) {
 function acceptChanges(projectId, docId, changeIds, callback) {
   _makeRequest(
   _makeRequest(
     {
     {