Skip to content

Commit

Permalink
fix: notion migrator returns correct parentId (#9325)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Dec 13, 2024
1 parent a9173eb commit ac1b2a5
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 ac1b2a5

Please sign in to comment.