From ec726af7eb4d3062da871ba538cfcf404543ee29 Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Tue, 1 Jul 2025 07:53:52 +0200 Subject: [PATCH] debug: add logs to trace mediawiki workflow executation --- src/services/module.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/module.service.ts b/src/services/module.service.ts index 15d7376..1cd8528 100644 --- a/src/services/module.service.ts +++ b/src/services/module.service.ts @@ -140,6 +140,7 @@ const handleHivemindWebsiteCase = async (platform: any) => { * @param {Object} platform - Platform object */ const handleHivemindMediaWikiCase = async (platform: any) => { + console.log('Handling Hivemind MediaWiki case for platform:', platform); const platformDoc = await platformService.getPlatformById(platform.platform); if (!platformDoc) return; @@ -148,8 +149,11 @@ const handleHivemindMediaWikiCase = async (platform: any) => { const existingWorkflowId = platformDoc.get('metadata.workflowId'); if (isActivated === true) { + console.log('Platform is activated, checking for existing workflow ID:', existingWorkflowId); if (!existingWorkflowId) { + console.log('No existing workflow ID found, executing new workflow for platform:', platform.platform); const workflowId = await temporalMediaWiki.executeWorkflow(platform.platform); + console.log('New workflow ID created:', workflowId); platformDoc.set('metadata.workflowId', workflowId); await platformDoc.save(); }