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:
parent
b039461ff4
commit
d9c67ffeff
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user