From b15d8f9379941c698dafd328a6a80440098d8699 Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Tue, 9 Sep 2025 15:26:20 +0200 Subject: [PATCH 1/2] fix: handle hivemind website case --- src/services/module.service.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/services/module.service.ts b/src/services/module.service.ts index 8f3b35c..760d300 100644 --- a/src/services/module.service.ts +++ b/src/services/module.service.ts @@ -1,10 +1,13 @@ import { FilterQuery, HydratedDocument, ObjectId, Types } from 'mongoose'; -import { IModule, IModuleUpdateBody, Module, PlatformNames, ModuleNames } from '@togethercrew.dev/db'; +import { + IModule, IModuleUpdateBody, Module, ModuleNames, PlatformNames +} from '@togethercrew.dev/db'; import platformService from './platform.service'; -import websiteService from './website'; import temporalMediaWiki from './temporal/mediaWiki.service'; +import websiteService from './website'; + /** * Create a module * @param {IModule} ModuleBody @@ -91,9 +94,9 @@ const updateModule = async ( const existingPlatform = module.options.platforms.find((p) => p.name === newPlatform.name); if (existingPlatform) { - // if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.Website) { - // await handleHivemindWebsiteCase(newPlatform); - // } + if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.Website) { + await handleHivemindWebsiteCase(newPlatform); + } if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.MediaWiki) { await handleHivemindMediaWikiCase(newPlatform); } From 8123fc2758ff0c48c65d58ccbff45466b0fbb13b Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Tue, 9 Sep 2025 15:29:54 +0200 Subject: [PATCH 2/2] ci: update main ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc5ea8b..04cfb16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,6 @@ on: jobs: ci: - uses: TogetherCrew/operations/.github/workflows/ci.yml@main + uses: TogetherCrew/operations/.github/workflows/ci2.yml@main secrets: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}