mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05: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