From 81d2b39ee1176ed7b7e9e022a8e728121f2daa94 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sat, 27 Dec 2025 01:14:31 +0330 Subject: [PATCH] fix: update Seq ServerUrl and change Hangfire job timezone to local - Adjusted Seq server URL for production and modified recurring job options to use local timezone --- src/CMSMicroservice.WebApi/Program.cs | 4 ++-- src/CMSMicroservice.WebApi/appsettings.Production.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMSMicroservice.WebApi/Program.cs b/src/CMSMicroservice.WebApi/Program.cs index 7eeae10..37131fe 100644 --- a/src/CMSMicroservice.WebApi/Program.cs +++ b/src/CMSMicroservice.WebApi/Program.cs @@ -215,7 +215,7 @@ using (var scope = app.Services.CreateScope()) cronExpression: "5 0 * * 0", // Sunday at 00:05 options: new RecurringJobOptions { - TimeZone = TimeZoneInfo.Utc + TimeZone = TimeZoneInfo.Local }); app.Logger.LogInformation("✅ Hangfire recurring job 'weekly-commission-calculation' registered (Cron: 5 0 * * 0 - Sunday 00:05 UTC)"); @@ -229,7 +229,7 @@ using (var scope = app.Services.CreateScope()) recurringJobId: "chatika-account-activation", methodCall: job => job.ExecuteAsync(CancellationToken.None), cronExpression: "*/5 * * * *", - options: new RecurringJobOptions { TimeZone = TimeZoneInfo.Utc }); + options: new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); app.Logger.LogInformation("✅ Hangfire recurring job 'chatika-account-activation' registered (Cron: */5 * * * * - Every 5 minutes)"); } diff --git a/src/CMSMicroservice.WebApi/appsettings.Production.json b/src/CMSMicroservice.WebApi/appsettings.Production.json index 5ff993e..b976ad4 100644 --- a/src/CMSMicroservice.WebApi/appsettings.Production.json +++ b/src/CMSMicroservice.WebApi/appsettings.Production.json @@ -66,7 +66,7 @@ "Audience": "domain_api" }, "Seq": { - "ServerUrl": "https://seq.afrino.co", + "ServerUrl": "http://seq-svc:5341", "ApiKey": "oxpvpUzU1pZxMS4s3Fqq" } }