Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 6e85cf7

Browse files
author
haydenyoung
committed
Range compares field against min and max.
1 parent 5fa2af9 commit 6e85cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class OrbitdbAPI extends Express {
102102
'gte': (a, b) => a >= b,
103103
'lte': (a, b) => a <= b,
104104
'mod': (a, b, c) => a % b == c,
105-
'range': (a, b, c) => min(b,c) <= a && a >= max(b,c),
105+
'range': (a, b, c) => Math.max(b,c) >= a && a >= Math.min(b,c),
106106
'all': () => true
107107
};
108108

0 commit comments

Comments
 (0)