projects
/
websub-hub
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fe3a4d9
)
fix db schema version check
author
Justin Wind
<justin.wind+git@gmail.com>
Mon, 16 Aug 2021 18:42:50 +0000
(11:42 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Mon, 16 Aug 2021 18:42:50 +0000
(11:42 -0700)
src/db/base.js
patch
|
blob
|
history
diff --git
a/src/db/base.js
b/src/db/base.js
index 21e26642fad6ab703ef5c0a7a094180b4b3d19bc..95c901068092eb93ea8218cca55e775b1ffa5f10 100644
(file)
--- 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);
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 });
this.logger.debug(_scope, 'schema supported', { currentSchema, schemaVersionsSupported: this.schemaVersionsSupported });
} else {
this.logger.error(_scope, 'schema not supported', { currentSchema, schemaVersionsSupported: this.schemaVersionsSupported });