Skip to content

Commit

Permalink
fix(seeding): adjust order of deletion (#94)
Browse files Browse the repository at this point in the history
Refs: #93
Reviewed-By: Evelyn Gurschler <[email protected]>
  • Loading branch information
Phil91 authored Nov 13, 2024
1 parent 46221cf commit 562afcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public async Task ExecuteAsync(CancellationToken cancellationToken)
return;
}

await SeedTable<Authority>("authorities", x => x.Bpn, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
await SeedTable<Credential>("credentials", x => x.Id, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
await SeedTable<CredentialAuthority>("credential_authorities", x => new { x.CredentialId, x.Bpn }, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
await SeedTable<Credential>("credentials", x => x.Id, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
await SeedTable<Authority>("authorities", x => x.Bpn, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);

await context.SaveChangesAsync(cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None);
}
Expand Down

0 comments on commit 562afcd

Please sign in to comment.