mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
bug fixes
This commit is contained in:
parent
4447f27c81
commit
a67b2b75a1
@ -92,7 +92,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var collection = model.ToCollection(orgIdGuid);
|
||||
await _collectionService.SaveAsync(collection, model?.GroupIds.Select(g => new Guid(g)));
|
||||
await _collectionService.SaveAsync(collection, model.GroupIds?.Select(g => new Guid(g)));
|
||||
return new CollectionResponseModel(collection);
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ namespace Bit.Api.Controllers
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
await _collectionService.SaveAsync(model.ToCollection(collection), model?.GroupIds.Select(g => new Guid(g)));
|
||||
await _collectionService.SaveAsync(model.ToCollection(collection), model.GroupIds?.Select(g => new Guid(g)));
|
||||
return new CollectionResponseModel(collection);
|
||||
}
|
||||
|
||||
|
@ -40,13 +40,13 @@ namespace Bit.Core.Models.Api
|
||||
|
||||
public class CollectionDetailsResponseModel : CollectionResponseModel
|
||||
{
|
||||
public CollectionDetailsResponseModel(Collection collection, IEnumerable<Guid> collectionIds)
|
||||
public CollectionDetailsResponseModel(Collection collection, IEnumerable<Guid> groupIds)
|
||||
: base(collection, "collectionDetails")
|
||||
{
|
||||
CollectionIds = collectionIds;
|
||||
GroupIds = groupIds;
|
||||
}
|
||||
|
||||
public IEnumerable<Guid> CollectionIds { get; set; }
|
||||
public IEnumerable<Guid> GroupIds { get; set; }
|
||||
}
|
||||
|
||||
public class CollectionUserDetailsResponseModel : CollectionResponseModel
|
||||
|
Loading…
Reference in New Issue
Block a user