You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: drivers/query_builder.js
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -540,21 +540,19 @@ class GenericQueryBuilder {
540
540
thrownewError("where_"+(not==='' ? '' : not.toLowerCase()+'_')+"in(): Invalid field name provided.");
541
541
}
542
542
543
-
// Values must be an array...
543
+
// `values` must be an array...
544
544
if(!Array.isArray(values)){
545
-
thrownewError("where_"+(not==='' ? '' : not.toLowerCase()+'_')+"in(): Invalid second parameter provided--it must be an array of scalar values.");
546
-
}
547
-
else{
548
-
if(values.length==0){
549
-
thrownewError("where_"+(not==='' ? '' : not.toLowerCase()+'_')+"in(): You have provided an empty list of values to limit resultset by.");
550
-
}
545
+
thrownewError("where_"+(not==='' ? '' : not.toLowerCase()+'_')+"in(): Invalid second parameter provided--it must be an array of scalar values or an empty array.");
0 commit comments