Skip to content

Commit

Permalink
fix(seeding): add companyApplication to update seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil91 committed Apr 11, 2024
1 parent 2f9ab33 commit 78c2551
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ await SeedTable<Company>("companies",
dbEntry.SelfDescriptionDocumentId = entry.SelfDescriptionDocumentId;
}, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);

await SeedTable<CompanyApplication>("company_applications",
x => x.Id,
x => x.dbEntity.ChecklistProcessId == null,
(dbEntry, entry) =>
{
dbEntry.ChecklistProcessId = entry.ChecklistProcessId;
}, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);

await _context.SaveChangesAsync(cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
_logger.LogInformation("Finished BaseEntityBatch Seeder");
}
Expand Down

0 comments on commit 78c2551

Please sign in to comment.