1
0
Fork 0
mirror of synced 2024-07-12 17:56:07 +12:00

Only try to lookup migrations if there are migrations to work with.

This commit is contained in:
mike12345567 2024-06-10 23:01:39 +01:00
parent 8c1735a1bd
commit 553c2186b1

View file

@ -38,8 +38,14 @@ export async function checkMissingMigrations(
next: Next,
appId: string
) {
const currentVersion = await getAppMigrationVersion(appId)
const latestMigration = getLatestEnabledMigrationId()
// no migrations set - edge case, don't try to do anything
if (!latestMigration) {
return
}
const currentVersion = await getAppMigrationVersion(appId)
const queue = getAppMigrationQueue()
if (