1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01: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")]
public async Task PostIapCheck(IapCheckRequestModel model)
public async Task PostIapCheck([FromBody]IapCheckRequestModel model)
{
var user = await _userService.GetUserByPrincipalAsync(User);
if(user == null)

View File

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