Skip to content

Commit

Permalink
fix(policy): adjust attributeKey for purpose (#161)
Browse files Browse the repository at this point in the history
Refs: #68 
Reviewed-By: Phil Schneider <[email protected]>
  • Loading branch information
AnuragNagpure authored Jun 24, 2024
1 parent 9ea9bba commit 6df52f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ public async Task ExecuteAsync(CancellationToken cancellationToken)
await SeedTable<Policy>(
"policies",
x => new { x.Id },
x => x.dbEntity.IsActive != x.dataEntity.IsActive || x.dbEntity.TechnicalKey != x.dataEntity.TechnicalKey || x.dbEntity.LeftOperandValue != x.dataEntity.LeftOperandValue,
x => x.dbEntity.IsActive != x.dataEntity.IsActive || x.dbEntity.TechnicalKey != x.dataEntity.TechnicalKey || x.dbEntity.LeftOperandValue != x.dataEntity.LeftOperandValue || x.dbEntity.AttributeKeyId != x.dataEntity.AttributeKeyId,
(dbEntity, entity) =>
{
dbEntity.IsActive = entity.IsActive;
dbEntity.TechnicalKey = entity.TechnicalKey;
dbEntity.LeftOperandValue = entity.LeftOperandValue;
dbEntity.AttributeKeyId = entity.AttributeKeyId;
}, cancellationToken).ConfigureAwait(false);

await SeedTable<PolicyAttribute>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"technical_key": "UsagePurpose",
"description": "",
"is_active": true,
"attribute_key_id": 3
"attribute_key_id": 2
},
{
"id": "01a0fba3-9b6e-435a-b045-e0e890c300c9",
Expand Down

0 comments on commit 6df52f6

Please sign in to comment.