Skip to content

Commit

Permalink
fix(core-manager): use force flag on update (#4445)
Browse files Browse the repository at this point in the history
* fix(core-manager): use force flag on update

* test(core-manager): use force flag on update
  • Loading branch information
sebastijankuzner authored Jul 26, 2021
1 parent 87ee3b5 commit deac156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ describe("Info:CoreUpdate", () => {
const result = await action.execute({});

expect(result).toEqual({});
expect(mockCliManager.runCommand).toHaveBeenCalledWith("update");
expect(mockCliManager.runCommand).toHaveBeenCalledWith("update", "--force");
});
});
2 changes: 1 addition & 1 deletion packages/core-manager/src/actions/info-core-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Action implements Actions.Action {
public name = "info.coreUpdate";

public async execute(params: object): Promise<any> {
await this.cliManager.runCommand("update");
await this.cliManager.runCommand("update", "--force");
return {};
}
}

0 comments on commit deac156

Please sign in to comment.