Files
wallabicher/web/backend/services/fileWatcher.js
Omar Sánchez Pizarro 81bf0675ed mongodb
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
2026-01-20 03:21:50 +01:00

21 lines
639 B
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// File watcher ya no es necesario ya que los workers se almacenan en MongoDB
// Los cambios se notifican directamente a través de WebSocket cuando se actualizan via API
let watcher = null;
// Inicializar file watcher (ahora vacío, mantenido para compatibilidad)
export function initFileWatcher() {
// Los workers ahora se almacenan en MongoDB y se notifican directamente
// a través de WebSocket cuando se actualizan via API
console.log(' File watcher no es necesario (workers en MongoDB)');
}
// Detener file watcher
export function stopFileWatcher() {
if (watcher) {
watcher.close();
watcher = null;
}
}