mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[project-history] fix callback signature when processing no updates (#26420)
* [project-history] fix tests and cover callback for processing updates The before setup was hiding that some tests were not doing what the assertions were expecting. * [project-history] fix callback signature when processing no updates GitOrigin-RevId: 4fa14d47b9a1afd998316b0c9024d49760785a47
This commit is contained in:
@@ -546,7 +546,10 @@ export function _processUpdates(
|
||||
}
|
||||
if (filteredUpdates.length === 0) {
|
||||
// return early if there are no updates to apply
|
||||
return SyncManager.setResyncState(projectId, newSyncState, callback)
|
||||
return SyncManager.setResyncState(projectId, newSyncState, err => {
|
||||
if (err) return callback(err)
|
||||
callback(null, { resyncNeeded: false })
|
||||
})
|
||||
}
|
||||
// only make request to history service if we have actual updates to process
|
||||
_getMostRecentVersionWithDebug(
|
||||
|
||||
Reference in New Issue
Block a user