mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-22 22:22:51 +08:00
refactor: ♻️ 取消插入种子数据后退出程序 (#191)
This commit is contained in:
parent
0848c8b7e5
commit
f00046265a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user