mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
bug fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user