Skip to content

Commit

Permalink
fix: notion migrator returns correct parentId
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Dec 13, 2024
1 parent a9173eb commit 5d56ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/migrations/20241211_parents_migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const migrators: Record<ConnectorProvider, ProviderMigrator | null> = {
// legacy parents
...uniqueIds,
],
parentId: `notion-${uniqueIds[0]}`,
parentId: uniqueIds[1],
};
},
cleaner: (nodeId, parents) => {
Expand All @@ -209,7 +209,7 @@ const migrators: Record<ConnectorProvider, ProviderMigrator | null> = {
);
return {
parents: uniqueIds.map((id) => `notion-${id}`),
parentId: `notion-${uniqueIds[0]}`,
parentId: `notion-${uniqueIds[1]}`,
};
},
},
Expand Down

0 comments on commit 5d56ab6

Please sign in to comment.