Skip to content

Commit

Permalink
#284 better identifier for custom table item
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrch committed Dec 9, 2024
1 parent 3f6afc8 commit deb5c8f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ private async Task MigrateCustomTables()
continue;
}

var ctis = modelFacade.SelectAllAsDictionary(cmsClass.ClassTableName);
foreach (var cti in ctis)
var customTableItems = modelFacade.SelectAllAsDictionary(cmsClass.ClassTableName);
foreach (var customTableItem in customTableItems)
{
var results = mapper.Map(new CustomTableMapperSource(
targetDataClass.ClassFormDefinition,
cmsClass.ClassFormDefinition,
cti.TryGetValue("ItemGUID", out object? itemGuid) && itemGuid is Guid guid ? guid : Guid.NewGuid(), // TODO tomas.krch: 2024-12-03 provide guid?
customTableItem.TryGetValue("ItemGUID", out object? itemGuid) && itemGuid is Guid guid ? guid : Guid.NewGuid(), // TODO tomas.krch: 2024-12-03 provide guid?
cmsClass,
cti,
customTableItem,
mapping
));
try
Expand Down

0 comments on commit deb5c8f

Please sign in to comment.