lib/sync/get_server_changes.js
Function getServerChanges
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getServerChanges(db, syncedRevision, clientIdentity, partialsThreshold, currentDBRevision) {
// Get all changes after syncedRevision that was not performed by the client we're talking to.
return db.getChangesData(syncedRevision, clientIdentity)
// Compact changes so that multiple changes on same object are merged into a single change.
.then((changes) => reduceChanges(changes))
Function getServerChanges
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getServerChanges(db, syncedRevision, clientIdentity, partialsThreshold, currentDBRevision) {