X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Fdb%2Fbase.js;h=95c901068092eb93ea8218cca55e775b1ffa5f10;hb=777488fff1f833e2bb699c700f38aa7374a80735;hp=21e26642fad6ab703ef5c0a7a094180b4b3d19bc;hpb=28de4364128a4b03918a8cbe868009b5d427220a;p=websub-hub 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 });