From b7fa490d270db56935d2f1b380351aa264295119 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Mon, 16 Aug 2021 11:42:50 -0700 Subject: [PATCH] fix db schema version check --- src/db/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/base.js b/src/db/base.js index 21e2664..95c9010 100644 --- a/src/db/base.js +++ b/src/db/base.js @@ -96,7 +96,7 @@ class Database { const current = svh.schemaVersionObjectToNumber(currentSchema); const min = svh.schemaVersionObjectToNumber(this.schemaVersionsSupported.min); const max = svh.schemaVersionObjectToNumber(this.schemaVersionsSupported.max); - if (min >= current && max <= current) { + if (current >= min && current <= max) { this.logger.debug(_scope, 'schema supported', { currentSchema, schemaVersionsSupported: this.schemaVersionsSupported }); } else { this.logger.error(_scope, 'schema not supported', { currentSchema, schemaVersionsSupported: this.schemaVersionsSupported }); -- 2.45.2