[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:
Jakob Ackermann
2025-06-16 08:06:36 +00:00
committed by Copybot
parent 6f516b25af
commit 0aa56fbe2c
2 changed files with 98 additions and 47 deletions
@@ -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(