Merge pull request #190 from fredrikekre/fe/sync

SyncCommand: Pass allowThrowOnError to fullSync
This commit is contained in:
Chad Scharf 2020-11-23 12:10:54 -05:00 committed by GitHub
commit 8c99762de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}