From 58fd8bfd6891af0d2b11fcaed08b576dfee6eac0 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Mon, 17 Nov 2025 02:18:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=81=D0=BE=D1=85?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=BE=D0=BA?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Jobs/UpdateJWTJob.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SfeduSchedule/Jobs/UpdateJWTJob.cs b/SfeduSchedule/Jobs/UpdateJWTJob.cs index 91e1d0a..4064467 100644 --- a/SfeduSchedule/Jobs/UpdateJWTJob.cs +++ b/SfeduSchedule/Jobs/UpdateJWTJob.cs @@ -1,3 +1,4 @@ +using ModeusSchedule.Abstractions; using Quartz; namespace SfeduSchedule.Jobs; @@ -15,7 +16,7 @@ public class UpdateJwtJob( { logger.LogInformation("Начало выполнения UpdateJwtJob"); - var authUrl = configuration["AUTH_URL"] ?? "http://msauth/auth/ms"; + var authUrl = configuration["AUTH_URL"] ?? "http://msauth:8080/auth/ms"; var apiKey = configuration["AUTH_API_KEY"] ?? string.Empty; var client = httpClientFactory.CreateClient("authClient"); @@ -67,6 +68,7 @@ public class UpdateJwtJob( } configuration["TOKEN"] = body.Jwt; + await File.WriteAllTextAsync(GlobalConsts.JwtFilePath, body.Jwt + "\n" + DateTime.Now.ToString("O"), cts.Token); logger.LogInformation("JWT успешно обновлён"); return; }