Skip to content

Commit

Permalink
revert where statement
Browse files Browse the repository at this point in the history
  • Loading branch information
anthioikonomou committed Oct 15, 2024
1 parent c0f26c7 commit d0e31cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-queryable.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ DataQueryable.prototype.prepare = function(useOr) {
});
*/
DataQueryable.prototype.where = function(attr) {
Args.check(this.query.$where == null && this.query.$prepared ==null, new Error('The where expression has already been initialized.'));
Args.check(this.query.$where == null, new Error('The where expression has already been initialized.'));
if (typeof attr === 'string' && /\//.test(attr)) {
this.query.where(DataAttributeResolver.prototype.resolveNestedAttribute.call(this, attr));
return this;
Expand Down

0 comments on commit d0e31cc

Please sign in to comment.