diff --git a/packages/server/src/appMigrations/index.ts b/packages/server/src/appMigrations/index.ts index de15666215..5ee92543f0 100644 --- a/packages/server/src/appMigrations/index.ts +++ b/packages/server/src/appMigrations/index.ts @@ -49,7 +49,6 @@ export async function checkMissingMigrations( const queue = getAppMigrationQueue() if ( - queue && latestMigration && getTimestamp(currentVersion) < getTimestamp(latestMigration) ) { diff --git a/packages/server/src/appMigrations/queue.ts b/packages/server/src/appMigrations/queue.ts index 12f301da0e..d06d039fd0 100644 --- a/packages/server/src/appMigrations/queue.ts +++ b/packages/server/src/appMigrations/queue.ts @@ -13,7 +13,7 @@ export type AppMigrationJob = { // always create app migration queue - so that events can be pushed and read from it // across the different api and automation services -let appMigrationQueue = queue.createQueue( +const appMigrationQueue = queue.createQueue( queue.JobQueue.APP_MIGRATION, { jobOptions: {