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

fixes for meta repo and iapcheck model

This commit is contained in:
Kyle Spearrin
2019-09-19 09:23:48 -04:00
parent d73e2da7a4
commit 43f26925d1
2 changed files with 6 additions and 3 deletions

View File

@ -442,7 +442,7 @@ namespace Bit.Api.Controllers
} }
[HttpPost("iap-check")] [HttpPost("iap-check")]
public async Task PostIapCheck(IapCheckRequestModel model) public async Task PostIapCheck([FromBody]IapCheckRequestModel model)
{ {
var user = await _userService.GetUserByPrincipalAsync(User); var user = await _userService.GetUserByPrincipalAsync(User);
if(user == null) if(user == null)

View File

@ -51,7 +51,8 @@ namespace Bit.Core.Repositories.TableStorage
{ {
entity = new DictionaryEntity entity = new DictionaryEntity
{ {
PartitionKey = id PartitionKey = $"{objectName}_{id}",
RowKey = string.Empty
}; };
} }
if(entity.ContainsKey(keyValuePair.Key)) if(entity.ContainsKey(keyValuePair.Key))
@ -66,7 +67,8 @@ namespace Bit.Core.Repositories.TableStorage
{ {
var entity = new DictionaryEntity var entity = new DictionaryEntity
{ {
PartitionKey = $"{objectName}_{id}" PartitionKey = $"{objectName}_{id}",
RowKey = string.Empty
}; };
foreach(var item in dict) foreach(var item in dict)
{ {
@ -82,6 +84,7 @@ namespace Bit.Core.Repositories.TableStorage
await _table.ExecuteAsync(TableOperation.Delete(new DictionaryEntity await _table.ExecuteAsync(TableOperation.Delete(new DictionaryEntity
{ {
PartitionKey = $"{objectName}_{id}", PartitionKey = $"{objectName}_{id}",
RowKey = string.Empty,
ETag = "*" ETag = "*"
})); }));
} }