1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

force sync option

This commit is contained in:
Kyle Spearrin 2018-05-14 14:58:18 -04:00
parent 4f3f84539d
commit 4166efceca

View File

@ -9,7 +9,7 @@ export class SyncCommand {
async run(cmd: program.Command): Promise<Response> { async run(cmd: program.Command): Promise<Response> {
try { try {
const result = await this.syncService.fullSync(false); const result = await this.syncService.fullSync(cmd.force || false);
return Response.success(); return Response.success();
} catch (e) { } catch (e) {
return Response.success(e.toString()); return Response.success(e.toString());