Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 64d83c9

Browse files
Dop 5395 (#1084)
* DOP-5395 hardcode parser user to docsworker-xlarge for persistence module * DOP-5395 add comments * DOP-5395 use replace * DOP-5395 replace parser user for every page id in persistence module * DOP-5395 lint * DOP-5395 remove unecessary replace for page id prefix * DOP-5395 fixing page id updating
1 parent 3674a66 commit 64d83c9

File tree

1 file changed

+5
-4
lines changed
  • modules/persistence/src/services/pages

1 file changed

+5
-4
lines changed

modules/persistence/src/services/pages/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,14 @@ const updatePages = async (pages: Page[], collection: string, githubUser: string
311311

312312
export const insertAndUpdatePages = async (buildId: ObjectId, zip: AdmZip, githubUser: string) => {
313313
try {
314-
const pages = pagesFromZip(zip, githubUser);
315-
314+
316315
// TEMPORARY FIX FOR NETLIFY BUILDS
317316
// TODO: DOP-5405 remove parser user from page id altogether
318-
for (const page of pages) {
317+
318+
const pages = pagesFromZip(zip, githubUser).map((page: Page) => {
319319
page.page_id = page.page_id.replace('buildbot', 'docsworker-xlarge');
320-
}
320+
return page;
321+
});
321322

322323
const ops: PromiseLike<any>[] = [insert(pages, COLLECTION_NAME, buildId, true)];
323324

0 commit comments

Comments
 (0)