Merge pull request #190 from fredrikekre/fe/sync
SyncCommand: Pass allowThrowOnError to fullSync
This commit is contained in:
commit
8c99762de1
|
@ -15,11 +15,11 @@ export class SyncCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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);
|
const res = new MessageResponse('Syncing complete.', null);
|
||||||
return Response.success(res);
|
return Response.success(res);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return Response.error(e);
|
return Response.error('Syncing failed: ' + e.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue