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:
parent
d73e2da7a4
commit
43f26925d1
@ -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)
|
||||
|
@ -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 = "*"
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user