Clean error alerts and harden startup migration
This commit is contained in:
@@ -59,6 +59,7 @@ namespace JobTrackerApi.Data
|
||||
.HasIndex(c => c.OwnerUserId);
|
||||
|
||||
modelBuilder.Entity<Correspondence>()
|
||||
.HasQueryFilter(c => CurrentUserId != null && c.JobApplication.OwnerUserId == CurrentUserId)
|
||||
.HasOne(c => c.JobApplication)
|
||||
.WithMany(j => j.Messages)
|
||||
.HasForeignKey(c => c.JobApplicationId)
|
||||
|
||||
Reference in New Issue
Block a user