Skip to content

Commit 87037ed

Browse files
committed
[O2B-1506] Fix logic in greaterThanOrNull and lowerThanOrNull methods
Corrected the logic in QueryBuilder's greaterThanOrNull and lowerThanOrNull methods when the notFlag is set.
1 parent 44a0bf8 commit 87037ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/database/utilities/QueryBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class WhereQueryBuilder {
155155
greaterThanOrNull(min, strict) {
156156
if (this.notFlag) {
157157
this.notFlag = !this.notFlag;
158-
this.lowerThanOrNull(min, !strict);
158+
this.lowerThan(min, !strict);
159159
this.notFlag = !this.notFlag;
160160
return;
161161
}
@@ -179,7 +179,7 @@ class WhereQueryBuilder {
179179
lowerThanOrNull(max, strict) {
180180
if (this.notFlag) {
181181
this.notFlag = !this.notFlag;
182-
this.greaterThanOrNull(max, !strict);
182+
this.greaterThan(max, !strict);
183183
this.notFlag = !this.notFlag;
184184
return;
185185
}

0 commit comments

Comments
 (0)