mirror of
https://github.com/bitwarden/cli
synced 2025-12-11 13:53:25 +00:00
fix incorrect type on cipher model
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 4bce071498...c3ad9b9b7d
@@ -1,6 +1,5 @@
|
|||||||
import { CipherType } from 'jslib/enums/cipherType';
|
import { CipherType } from 'jslib/enums/cipherType';
|
||||||
|
|
||||||
import { CipherRequest } from 'jslib/models/request/cipherRequest';
|
|
||||||
import { CipherView } from 'jslib/models/view/cipherView';
|
import { CipherView } from 'jslib/models/view/cipherView';
|
||||||
|
|
||||||
import { Card } from './card';
|
import { Card } from './card';
|
||||||
@@ -26,7 +25,7 @@ export class Cipher {
|
|||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
static toView(req: CipherRequest, view = new CipherView()) {
|
static toView(req: Cipher, view = new CipherView()) {
|
||||||
view.type = req.type;
|
view.type = req.type;
|
||||||
view.folderId = req.folderId;
|
view.folderId = req.folderId;
|
||||||
if (view.organizationId == null) {
|
if (view.organizationId == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user