Merge branch 'master' into fix/BUDI-8258-update-presence

This commit is contained in:
Michael Drury 2024-06-07 18:15:54 +01:00 committed by GitHub
commit fcc38d4058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 27 deletions

View File

@ -1,4 +1,4 @@
import { context, locks } from "@budibase/backend-core"
import { context, locks, logging } from "@budibase/backend-core"
import { LockName, LockType } from "@budibase/types"
import {
@ -20,6 +20,7 @@ export async function processMigrations(
resource: appId,
},
async () => {
try {
await context.doInAppMigrationContext(appId, async () => {
let currentVersion = await getAppMigrationVersion(appId)
@ -51,6 +52,10 @@ export async function processMigrations(
currentVersion = id
}
})
} catch (err) {
logging.logAlert("Failed to run app migration", err)
throw err
}
}
)