|
@@ -59,7 +59,7 @@ describe('V5 page migration', () => {
|
|
|
|
|
|
|
|
const pageIds = pages.map(page => page._id);
|
|
const pageIds = pages.map(page => page._id);
|
|
|
// migrate
|
|
// migrate
|
|
|
- await crowi.pageService.normalizeParentRecursivelyByPageIds(pageIds, testUser1);
|
|
|
|
|
|
|
+ await crowi.pageService.normalizeParentByPageIds(pageIds, testUser1, true);
|
|
|
|
|
|
|
|
const migratedPages = await Page.find({
|
|
const migratedPages = await Page.find({
|
|
|
path: {
|
|
path: {
|