refactor: ♻️ 取消插入种子数据后退出程序 (#191)

This commit is contained in:
nsnail 2024-11-08 20:43:20 +08:00 committed by GitHub
parent 0848c8b7e5
commit f00046265a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,10 +37,6 @@ public sealed class SqlProfiler(ILogger<SqlProfiler> logger) : IEventSubscriber
{
var source = context.Source as SeedDataInsertedEvent;
logger.Info(source);
if (App.WebHostEnvironment.IsDevelopment()) {
Environment.Exit(0);
}
return Task.CompletedTask;
}