nponiros/sync_server

View on GitHub
lib/sync/resolve_conflicts.js

Summary

Maintainability
A
1 hr
Test Coverage

Function resolveConflicts has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function resolveConflicts(clientChanges, serverChangeSet) {
  const resolved = [];
  clientChanges
    .forEach((clientChange) => {
      const id = `${clientChange.table}:${clientChange.key}`;
Severity: Minor
Found in lib/sync/resolve_conflicts.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status