Skip to content

Commit

Permalink
fix(seeding): add companyApplication to update seeder (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil91 authored Apr 12, 2024
1 parent 2f9ab33 commit d0c30f4
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 d0c30f4

Please sign in to comment.