Skip to content

Commit b15d8f9

Browse files
committed
fix: handle hivemind website case
1 parent e81a1ac commit b15d8f9

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

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)