fix(sync): corrige event name force-sync → sync-request no trigger-sync
continuous-integration/webhook Deploy concluído (VPS4)

O servidor emitia 'force-sync' mas o client-monitor.js só ouve
'sync-request'. O botão Sincronizar do painel nunca chegava ao cliente.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
VPS 4 Deploy Agent
2026-05-31 07:53:07 +02:00
parent 0b1e62538a
commit 1d19c8e845
+1 -1
View File
@@ -295,7 +295,7 @@ app.post('/api/system/trigger-sync', authenticateToken, requireAdmin, (req, res)
identifiedWindowsClients.forEach(client => {
const socket = io.sockets.sockets.get(client.socketId);
if (socket) {
socket.emit('force-sync');
socket.emit('sync-request', { timestamp: Date.now() });
devicesTriggered++;
}
});