Skip to content

Commit

Permalink
Merge pull request #252 from TogetherCrew/250-fix-community-centric-bugs
Browse files Browse the repository at this point in the history
[FIXBUG]: fix create platform bug
  • Loading branch information
Behzad-rabiei authored Dec 18, 2023
2 parents 0bf579a + 51543f2 commit d7fa4dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/platform.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ const checkSinglePlatformConnection = async (communityId: Types.ObjectId, Platfo
const reconnectOrAddNewPlatform = async (communityId: Types.ObjectId, PlatformBody: IPlatform): Promise<HydratedDocument<IPlatform>> => {
let platformDoc = await getPlatformByFilter({
community: communityId,
disconnectedAt: { $ne: null }, // Check for platforms that are disconnected
name: PlatformBody.name
disconnectedAt: { $ne: null }, // Check for platform if it is disconnected
name: PlatformBody.name,
'metadata.id': PlatformBody.metadata?.id
});


Expand Down

0 comments on commit d7fa4dd

Please sign in to comment.