From ac1b2a59c3c8013a3e28b0c7193982aac2347a91 Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Fri, 13 Dec 2024 17:40:17 +0100 Subject: [PATCH] fix: notion migrator returns correct parentId (#9325) Co-authored-by: Henry Fontanier --- front/migrations/20241211_parents_migrator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/migrations/20241211_parents_migrator.ts b/front/migrations/20241211_parents_migrator.ts index 52cf0f7a2a0d..42a3c96ea058 100644 --- a/front/migrations/20241211_parents_migrator.ts +++ b/front/migrations/20241211_parents_migrator.ts @@ -199,7 +199,7 @@ const migrators: Record = { // legacy parents ...uniqueIds, ], - parentId: `notion-${uniqueIds[0]}`, + parentId: uniqueIds[1], }; }, cleaner: (nodeId, parents) => { @@ -209,7 +209,7 @@ const migrators: Record = { ); return { parents: uniqueIds.map((id) => `notion-${id}`), - parentId: `notion-${uniqueIds[0]}`, + parentId: `notion-${uniqueIds[1]}`, }; }, },