Browse Source

fix incorrect type on cipher model

pull/17/head
Kyle Spearrin 8 years ago
parent
commit
a1b0dcf8fa
  1. 2
      jslib
  2. 3
      src/models/cipher.ts

2
jslib

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 4bce071498aeda43e44f9b5f7f60ae11a57c7d6f
Subproject commit c3ad9b9b7df2c70ea9a80627c3c4e263886eaf8b

3
src/models/cipher.ts

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
import { CipherType } from 'jslib/enums/cipherType';
import { CipherRequest } from 'jslib/models/request/cipherRequest';
import { CipherView } from 'jslib/models/view/cipherView';
import { Card } from './card';
@ -26,7 +25,7 @@ export class Cipher { @@ -26,7 +25,7 @@ export class Cipher {
return req;
}
static toView(req: CipherRequest, view = new CipherView()) {
static toView(req: Cipher, view = new CipherView()) {
view.type = req.type;
view.folderId = req.folderId;
if (view.organizationId == null) {

Loading…
Cancel
Save