Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #190 from fredrikekre/fe/sync
Browse files Browse the repository at this point in the history
SyncCommand: Pass allowThrowOnError to fullSync
  • Loading branch information
cscharf committed Nov 23, 2020
2 parents cb61cc7 + 179a6e8 commit 8c99762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/sync.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class SyncCommand {
}

try {
const result = await this.syncService.fullSync(cmd.force || false);
const result = await this.syncService.fullSync(cmd.force || false, true);
const res = new MessageResponse('Syncing complete.', null);
return Response.success(res);
} catch (e) {
return Response.error(e);
return Response.error('Syncing failed: ' + e.toString());
}
}

Expand Down

0 comments on commit 8c99762

Please sign in to comment.