Skip to content

Commit 4e4b4c1

Browse files
Merge pull request #482 from TogetherCrew/activate-website-hivemind-module-workflow
fix: handle hivemind website case
2 parents e81a1ac + 8123fc2 commit 4e4b4c1

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ on:
66

77
jobs:
88
ci:
9-
uses: TogetherCrew/operations/.github/workflows/ci.yml@main
9+
uses: TogetherCrew/operations/.github/workflows/ci2.yml@main
1010
secrets:
1111
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

src/services/module.service.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { FilterQuery, HydratedDocument, ObjectId, Types } from 'mongoose';
22

3-
import { IModule, IModuleUpdateBody, Module, PlatformNames, ModuleNames } from '@togethercrew.dev/db';
3+
import {
4+
IModule, IModuleUpdateBody, Module, ModuleNames, PlatformNames
5+
} from '@togethercrew.dev/db';
46

57
import platformService from './platform.service';
6-
import websiteService from './website';
78
import temporalMediaWiki from './temporal/mediaWiki.service';
9+
import websiteService from './website';
10+
811
/**
912
* Create a module
1013
* @param {IModule} ModuleBody
@@ -91,9 +94,9 @@ const updateModule = async (
9194
const existingPlatform = module.options.platforms.find((p) => p.name === newPlatform.name);
9295

9396
if (existingPlatform) {
94-
// if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.Website) {
95-
// await handleHivemindWebsiteCase(newPlatform);
96-
// }
97+
if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.Website) {
98+
await handleHivemindWebsiteCase(newPlatform);
99+
}
97100
if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.MediaWiki) {
98101
await handleHivemindMediaWikiCase(newPlatform);
99102
}

0 commit comments

Comments
 (0)