Skip to content

Commit

Permalink
fix(remove): add space before where
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgiz-badamshin committed May 16, 2019
1 parent ed073fb commit ffd2f52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,8 @@ var Base = Class.extend({
*/
remove: function (table, ids, callback) {
var sql = 'DELETE FROM ' + this._escapeDDL + table + this._escapeDDL;
var searchClause = '';

return this.runSql(sql + this.buildWhereClause(ids)).nodeify(callback);
return this.runSql(sql + ' ' + this.buildWhereClause(ids)).nodeify(callback);
},

/**
Expand Down

0 comments on commit ffd2f52

Please sign in to comment.