1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PS 1624]CLI get and delete folder command, fails if using GUID and Session key (#4026)

* Resolve get&delete folder cmd on cli using GUID&Sessionkey

* Using the getFromState on the edit.command.ts

Co-authored-by: dynwee <onwudiweokeke@gmail.com>
This commit is contained in:
cyprain-okeke
2022-11-17 12:52:48 +01:00
committed by GitHub
parent cba0f31937
commit df0a148ed8
5 changed files with 21 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ export class DeleteCommand {
}
private async deleteFolder(id: string) {
const folder = await this.folderService.get(id);
const folder = await this.folderService.getFromState(id);
if (folder == null) {
return Response.notFound();
}