diff --git a/.gitea/workflows/sync-to-github.yml b/.gitea/workflows/sync-to-github.yml index e41ac31..6e58baa 100644 --- a/.gitea/workflows/sync-to-github.yml +++ b/.gitea/workflows/sync-to-github.yml @@ -14,10 +14,6 @@ jobs: - name: Clonar el repo uses: actions/checkout@v3 - - name: Agregar remoto de GitHub - run: | - git remote add github https://josedario87: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@github.com/josedario87/planilla.git - - name: Forzar limpieza y retry run: | git remote remove github @@ -25,8 +21,3 @@ jobs: git fetch github git push github +HEAD:main --force - - - name: Forzar subida a GitHub (sobrescribe lo que haya) - run: | - git fetch github - git push github +main diff --git a/worker/cron-worker.js b/worker/cron-worker.js index 99de80d..ac7c6e1 100644 --- a/worker/cron-worker.js +++ b/worker/cron-worker.js @@ -12,11 +12,11 @@ cron.schedule('*/5 * * * * *', () => { } }); -// Schedules the daily employee data synchronization to run at midnight. -cron.schedule('0 0 * * *', () => { - console.log('[CronWorker] Running daily employee synchronization task...'); - syncEmpleadosToExternalDB().catch(err => { - console.error('[CronWorker] Error during scheduled employee synchronization:', err); - }); -}); -console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.'); +// // Schedules the daily employee data synchronization to run at midnight. +// cron.schedule('0 0 * * *', () => { +// console.log('[CronWorker] Running daily employee synchronization task...'); +// syncEmpleadosToExternalDB().catch(err => { +// console.error('[CronWorker] Error during scheduled employee synchronization:', err); +// }); +// }); +// console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.');