1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

restructure attachment commands

This commit is contained in:
Kyle Spearrin
2018-05-17 15:55:44 -04:00
parent 0a518a96b1
commit c0422ec77f
9 changed files with 72 additions and 82 deletions

View File

@@ -8,7 +8,6 @@ import { FolderService } from 'jslib/services/folder.service';
import { Response } from '../models/response';
import { StringResponse } from '../models/response/stringResponse';
import { Attachment } from '../models/attachment';
import { Cipher } from '../models/cipher';
import { Folder } from '../models/folder';
@@ -72,7 +71,8 @@ export class CreateCommand {
// TODO: premium and key check
const cipher = await this.cipherService.get(cmd.itemid);
const itemId = cmd.itemid.toLowerCase();
const cipher = await this.cipherService.get(itemId);
if (cipher == null) {
return Response.notFound();
}