feat: add worker for cron job and trigger frontend action to sync data with ERPNext

This commit is contained in:
AbleKSaju
2025-05-30 15:58:08 +05:30
parent 8a1c742684
commit da5ca9227e
3 changed files with 47 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
// eslint-disable-next-line
const { parentPort } = require('worker_threads');
if (parentPort) {
// eslint-disable-next-line
parentPort.postMessage({ type: 'trigger-frontend-action' });
}