Fix: Recorte de URL Front Para Notificaciones.

This commit is contained in:
2026-02-13 15:07:16 -03:00
parent 9a2b5a5f91
commit 0ebb2b15e5
5 changed files with 27 additions and 10 deletions

View File

@@ -216,7 +216,7 @@ public class AdExpirationService : BackgroundService
var notifService = scope.ServiceProvider.GetRequiredService<INotificationService>();
var config = scope.ServiceProvider.GetRequiredService<IConfiguration>();
var frontendUrl = config["AppSettings:FrontendUrl"] ?? "http://localhost:5173";
var frontendUrl = config["AppSettings:FrontendUrl"]?.Split(',')[0].Trim() ?? "http://localhost:5173";
var cutoff = DateTime.UtcNow.AddHours(-24);