fix(sync): corrige event name force-sync → sync-request no trigger-sync
continuous-integration/webhook Deploy concluído (VPS4)
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:
@@ -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++;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user