From bd9e05d7fa8d4ddc1e154347098dc99598a47904 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 20 Jun 2022 15:39:18 +0100 Subject: [PATCH] Fixing build issue. --- packages/server/src/automations/logging/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/automations/logging/index.ts b/packages/server/src/automations/logging/index.ts index bb5c0f24cd..5ff46b007d 100644 --- a/packages/server/src/automations/logging/index.ts +++ b/packages/server/src/automations/logging/index.ts @@ -15,7 +15,7 @@ import { } from "../../db/utils" import { createLogByAutomationView } from "../../db/views/staticViews" import { Automation, MetadataErrors } from "../../definitions/common" -import { invalidateAppMetadata } from "@budibase/backend-core/cache" +import { app } from "@budibase/backend-core/cache" import { backOff } from "../../utilities" import * as env from "../../environment" @@ -174,7 +174,7 @@ async function updateAppMetadataWithErrors( } await db.put(metadata) // don't update cache until after DB put, make sure it has been stored successfully - await invalidateAppMetadata(metadata.appId, metadata) + await app.invalidateAppMetadata(metadata.appId, metadata) }, "Failed to update app metadata with automation log error") }