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:
parent
4f3f84539d
commit
4166efceca
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user