Skip to content

Commit

Permalink
fix(api-page-builder): remove outdated settings check (#3438)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 31, 2023
1 parent c66ed37 commit 9b7f2f8
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import lodashGet from "lodash/get";
import WebinyError from "@webiny/error";
import { FlushEvent, RenderEvent, QueueAddJob } from "@webiny/api-prerendering-service/types";
import { ContextPlugin } from "@webiny/api";
Expand Down Expand Up @@ -89,14 +88,8 @@ export const prerenderingHandlers = new ContextPlugin<PbContext>(context => {
},

async flush(args): Promise<void> {
const current = await context.pageBuilder.getCurrentSettings();
const tenant = context.tenancy.getCurrentTenant().id;
const locale = context.i18n.getContentLocale()!;
const storageName = lodashGet(current, "prerendering.storage.name");

if (!storageName) {
return;
}

const { paths, tags } = args;

Expand Down

0 comments on commit 9b7f2f8

Please sign in to comment.