Commit a817f81c by lizefeng

fix

parent 3dc5cdaf
...@@ -27,7 +27,7 @@ namespace AutoTurnOver.RabbitMqService ...@@ -27,7 +27,7 @@ namespace AutoTurnOver.RabbitMqService
var builder = new HostBuilder().ConfigureServices((hostContext, services) => var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{ {
var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); var environmentName = Environment.GetEnvironmentVariable("QueryName");
if ("amazon_storage_fee".Equals(environmentName)) if ("amazon_storage_fee".Equals(environmentName))
{ {
services.AddHostedService<AnaFbaStorageFeeRabbitBackgroundService>(); services.AddHostedService<AnaFbaStorageFeeRabbitBackgroundService>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment