Skip to content

Commit bbf0a30

Browse files
page CT added
1 parent 1d5918c commit bbf0a30

File tree

5 files changed

+630
-48
lines changed

5 files changed

+630
-48
lines changed

api/src/constants/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ export const MIGRATION_DATA_CONFIG = {
265265
POSTS_FILE_NAME: "en-us.json",
266266
POSTS_MASTER_FILE: "posts.json",
267267

268+
PAGES_DIR_NAME: "pages",
269+
PAGES_FOLDER_NAME: "en-us",
270+
PAGES_FILE_NAME: "en-us.json",
271+
PAGES_MASTER_FILE: "pages.json",
272+
268273
CHUNKS_DIR_NAME: "chunks",
269274

270275
GLOBAL_FIELDS_DIR_NAME: "global_fields",

api/src/services/migration.service.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,15 @@ const startTestMigration = async (req: Request): Promise<any> => {
431431
project?.stackDetails?.master_locale,
432432
project
433433
);
434+
await wordpressService?.extractPages(
435+
packagePath,
436+
project?.current_test_stack_id,
437+
projectId,
438+
contentTypes,
439+
project?.mapperKeys,
440+
project?.stackDetails?.master_locale,
441+
project
442+
);
434443
await wordpressService?.extractGlobalFields(
435444
project?.current_test_stack_id,
436445
projectId
@@ -714,6 +723,15 @@ const startMigration = async (req: Request): Promise<any> => {
714723
project?.stackDetails?.master_locale,
715724
project
716725
);
726+
await wordpressService?.extractPages(
727+
packagePath,
728+
project?.destination_stack_id,
729+
projectId,
730+
contentTypes,
731+
project?.mapperKeys,
732+
project?.stackDetails?.master_locale,
733+
project
734+
);
717735
await wordpressService?.extractGlobalFields(
718736
project?.destination_stack_id,
719737
projectId

0 commit comments

Comments
 (0)