1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-18 09:13:13 +00:00

feature/18-import (#19)

* fix #18

* Add locked check
This commit is contained in:
Brandon Davis
2018-08-06 09:38:17 -04:00
committed by Kyle Spearrin
parent e0ff13e193
commit 47b5b9f950
8 changed files with 133 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ export class EditCommand {
let req: any = null;
try {
const reqJson = new Buffer(requestJson, 'base64').toString();
const reqJson = Buffer.from(requestJson, 'base64').toString();
req = JSON.parse(reqJson);
} catch (e) {
return Response.badRequest('Error parsing the encoded request data.');