Skip to content

Commit 2baaedb

Browse files
Merge pull request #457 from TogetherCrew/handle-website-workflows
fix: fix webiste module update
2 parents f395c96 + fe4df10 commit 2baaedb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/module.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ const updateModule = async (
9898
console.log('S4', existingPlatform);
9999

100100
if (existingPlatform) {
101-
existingPlatform.metadata = newPlatform.metadata;
102-
} else {
103-
module.options.platforms.push(newPlatform);
104101
console.log('A1', module.name, newPlatform.name);
105102
if (module.name === ModuleNames.Hivemind && newPlatform.name === PlatformNames.Website) {
106103
console.log('A2');
107104

108105
await handleHivemindWebsiteCase(newPlatform);
109106
}
107+
existingPlatform.metadata = newPlatform.metadata;
108+
} else {
109+
module.options.platforms.push(newPlatform);
110110
}
111111
}
112112
return module.save();

0 commit comments

Comments
 (0)