Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/waterline/methods/find-one.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ module.exports = function findOne( /* criteria?, populates?, explicitCbMaybe?, m
if (populatedRecords.length > 1) {
return done(flaverr({
message:
'More than one matching record found for `.findOne()`:\n'+
'More than one matching record found for `'+
modelIdentity[0].toUpperCase()+modelIdentity.substring(1)+
'.findOne()`:\n'+
'···\n'+
_.pluck(populatedRecords, WLModel.primaryKey)+'\n'+
'···\n'+
Expand Down
2 changes: 1 addition & 1 deletion lib/waterline/utils/system/transformer-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Transformation.prototype.serializeCriteria = function(values) {
});
}

// Recursivly parse attributes to handle nested criteria
// Recursively parse attributes to handle nested criteria
recursiveParse(values);

return values;
Expand Down