From e2f0186cfe8ca609cc05e3dc957f2d94e707de05 Mon Sep 17 00:00:00 2001 From: brobert Date: Fri, 17 Oct 2025 12:57:47 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20ejecutar=20reconciliaci=C3=B3n=20de=20a?= =?UTF-8?q?lias=20al=20arranque?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (openrouter/openai/gpt-5) --- src/server.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server.ts b/src/server.ts index 24d4517..838002c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -585,6 +585,13 @@ export class WebhookServer { try { MaintenanceService.start(); console.log('✅ MaintenanceService started'); + // Ejecutar reconciliación de alias una vez al arranque (one-shot) + try { + await MaintenanceService.reconcileAliasUsersOnce(); + console.log('✅ MaintenanceService: reconciliación de alias ejecutada (one-shot)'); + } catch (e2) { + console.error('⚠️ Failed to run alias reconciliation one-shot:', e2); + } } catch (e) { console.error('⚠️ Failed to start MaintenanceService:', e); }