Only try to lookup migrations if there are migrations to work with.
This commit is contained in:
parent
8c1735a1bd
commit
553c2186b1
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue