Fixing build issue.

This commit is contained in:
mike12345567 2022-06-20 15:39:18 +01:00
parent 5106214bc6
commit 76f6c3d34b
1 changed files with 2 additions and 2 deletions

View File

@ -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")
}