Skip to content

Commit

Permalink
create relations for existing discussions (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabestein authored Feb 27, 2025
1 parent 61a0012 commit 606c0f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/actions/googleDriveImport/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ export const run = defineRun<typeof action>(
},
};
}),
...formattedData.discussions
.filter((discussion) => existingDiscussionPubIds.includes(discussion.id))
.map((discussion) => {
return {
slug: `${communitySlug}:discussions`,
value: null,
relatedPubId: discussion.id,
};
}),
...formattedData.versions
.filter(
(version) =>
Expand Down

0 comments on commit 606c0f8

Please sign in to comment.