Skip to content

Commit

Permalink
capture changes for delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Aug 28, 2024
1 parent 610fe13 commit fc03760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion uSync.BackOffice/Services/SyncActionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public SyncActionResult ImportPost(SyncActionOptions options, uSyncCallbacks cal

callbacks?.Update("Import Complete", 1, 1);

return new SyncActionResult(actions);
return new SyncActionResult(actions.Where(x => x.Change > Core.ChangeType.NoChange));
}

public SyncActionResult ExportHandler(SyncActionOptions options, uSyncCallbacks callbacks)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@

uSync8DashboardService.importPost(vm.results, options, getClientId())
.then(function (results) {

if (results?.data?.actions) {
vm.results = vm.results.concat(results.data.actions)
}

vm.working = false;
vm.reported = true;
vm.perf = performance.now() - start;
Expand Down

0 comments on commit fc03760

Please sign in to comment.