1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

bug fixes

This commit is contained in:
Kyle Spearrin
2017-05-09 14:09:29 -04:00
parent 4447f27c81
commit a67b2b75a1
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}