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:
@ -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)
|
||||||
|
@ -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 = "*"
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user