From ac2b87df9edcb6224f7b9dd9c019159ba885238c Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 2 Jul 2024 16:59:42 +0100 Subject: [PATCH] Quick change. --- packages/server/src/appMigrations/index.ts | 1 - packages/server/src/appMigrations/queue.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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: {