diff --git a/src/lib/server-impl.ts b/src/lib/server-impl.ts index 3ee5cc9220..f2c93aeb47 100644 --- a/src/lib/server-impl.ts +++ b/src/lib/server-impl.ts @@ -141,7 +141,7 @@ async function start(opts: IUnleashOptions = {}): Promise { logger.info('DB migration: disabled'); } else { logger.info('DB migration: start'); - if (opts.flagResolver?.isEnabled('migrationLock')) { + if (config.flagResolver.isEnabled('migrationLock')) { logger.info('Running migration with lock'); const lock = withDbLock(config.db, { lockKey: defaultLockKey,