From 6a1281b14112e92554d23c9b4e8da1415c93540d Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Wed, 4 Oct 2023 12:12:42 +0200 Subject: [PATCH] fix(api-page-builder): compress page content on publish (#3575) --- packages/api-page-builder/src/graphql/crud/pages.crud.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/api-page-builder/src/graphql/crud/pages.crud.ts b/packages/api-page-builder/src/graphql/crud/pages.crud.ts index 7a8e71d8c96..4a1151556d9 100644 --- a/packages/api-page-builder/src/graphql/crud/pages.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/pages.crud.ts @@ -943,10 +943,10 @@ export const createPageCrud = (params: CreatePageCrudParams): PagesCrud => { }); const newPublishedPageRaw = await storageOperations.pages.publish({ - original, - page, - latestPage, - publishedPage, + original: await compressPage(original), + page: await compressPage(page), + latestPage: await compressPage(latestPage), + publishedPage: publishedPage ? await compressPage(publishedPage) : null, publishedPathPage });