Skip to content

Commit d61678e

Browse files
fixed data seeding
1 parent 6075159 commit d61678e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Streetcode/Streetcode.WebApi/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
}
7979

8080
await app.ApplyMigrations();
81-
await app.SeedDataAsync();
81+
if (!builder.Environment.EnvironmentName.Equals("IntegrationTests"))
82+
{
83+
await app.SeedDataAsync();
84+
}
8285

8386
app.AddCleanAudiosJob();
8487
app.AddCleanImagesJob();

0 commit comments

Comments
 (0)