Skip to content

Commit

Permalink
Prepare for lodash 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcelino committed Jul 4, 2016
1 parent a2fdb47 commit e06ed75
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/associations.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Associations.prototype.getFetchPlan = function getFetchPlan(collectionName, crit
var where = fetchPlan.slice(-1) === ' ' ? fetchPlan.slice(0, -1) : fetchPlan;
return {
where: where,
select: _.unique(select)
select: _.uniq(select)
};
};

Expand Down
2 changes: 1 addition & 1 deletion lib/collection/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Edge.prototype.destroy = function destroy(criteria, cb) {

if(results.length === 0){ return cb(null, results); }

var rids = _.pluck(results, 'id');
var rids = _.map(results, 'id');
log.debug('Destroy rids: ' + rids);

self.connection.db.delete(self.classCommand)
Expand Down
2 changes: 1 addition & 1 deletion lib/collection/vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Vertex.prototype.destroy = function destroy(criteria, cb) {

if(results.length === 0){ return cb(null, results); }

var rids = _.pluck(results, 'id');
var rids = _.map(results, 'id');
log.debug('Destroy rids: ' + rids);

self.connection.db.delete(self.classCommand)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"async": "^1.0.0",
"bluebird": "^3.4.1",
"debug-logger": "^0.4.0",
"lodash": "^3.3.0",
"lodash": "^3.10.1",
"orientjs": "^2.2.1",
"waterline-criteria": "^1.0.1",
"waterline-cursor": "~0.0.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Adapter Custom Methods', function () {
function complete(err, results){
assert.equal(err, null);

var uniqueCounts = _.unique(results);
var uniqueCounts = _.uniq(results);
assert.strictEqual(uniqueCounts.length, opsNumber);
done();
});
Expand Down

0 comments on commit e06ed75

Please sign in to comment.