1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-07 05:58:13 -05:00

ignore edit param

This commit is contained in:
Kyle Spearrin 2017-05-06 23:45:29 -04:00
parent b039461ff4
commit d9c67ffeff
3 changed files with 8 additions and 6 deletions

View File

@ -134,12 +134,12 @@ namespace Bit.Api.Controllers
public async Task PostImport([FromBody]ImportRequestModel model) public async Task PostImport([FromBody]ImportRequestModel model)
{ {
var userId = _userService.GetProperUserId(User).Value; var userId = _userService.GetProperUserId(User).Value;
var folderCiphers = model.Folders.Select(f => f.ToFolder(userId)).ToList(); var folders = model.Folders.Select(f => f.ToFolder(userId)).ToList();
var otherCiphers = model.Logins.Select(l => l.ToCipherDetails(userId)).ToList(); var ciphers = model.Logins.Select(l => l.ToCipherDetails(userId)).ToList();
await _cipherService.ImportCiphersAsync( await _cipherService.ImportCiphersAsync(
folderCiphers, folders,
otherCiphers, ciphers,
model.FolderRelationships); model.FolderRelationships);
} }

View File

@ -9,7 +9,8 @@
@CreationDate DATETIME2(7), @CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7), @RevisionDate DATETIME2(7),
@FolderId UNIQUEIDENTIFIER, @FolderId UNIQUEIDENTIFIER,
@Favorite BIT @Favorite BIT,
@Edit BIT -- not used
AS AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON

View File

@ -9,7 +9,8 @@
@CreationDate DATETIME2(7), @CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7), @RevisionDate DATETIME2(7),
@FolderId UNIQUEIDENTIFIER, @FolderId UNIQUEIDENTIFIER,
@Favorite BIT @Favorite BIT,
@Edit BIT -- not used
AS AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON