Fixing build issue.

This commit is contained in:
mike12345567 2022-06-20 15:39:18 +01:00
parent 0ba185a487
commit bd9e05d7fa
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")
}