Skip to content

Commit

Permalink
Move language about min/max as column name underneath the example
Browse files Browse the repository at this point in the history
  • Loading branch information
rachaelshaw committed Apr 30, 2019
1 parent 1ee5c84 commit a9f6cb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/waterline/utils/query/private/normalize-criteria.js
Expand Up @@ -301,9 +301,6 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta)
'usage has changed. Now, to calculate the minimum value of an attribute '+
'across multiple records, use the `.find()` model method.\n'+
'\n'+
'Alternatively, if you are using `min` as a column/attribute name then '+
'please be advised that some things won\'t work as expected.\n'+
'\n'+
'For example:\n'+
'```\n'+
'// Get the smallest account balance from amongst all account holders '+'\n'+
Expand All @@ -325,6 +322,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta)
' }'+'\n'+
'});'+'\n'+
'```\n'+
'Alternatively, if you are using `min` as a column/attribute name then '+
'please be advised that some things won\'t work as expected.\n'+
'\n'+
'For more info, see:\n'+
'http://sailsjs.com/docs/reference/waterline-orm/models/find'
);
Expand All @@ -338,9 +338,6 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta)
'usage has changed. Now, to calculate the maximum value of an attribute '+
'across multiple records, use the `.find()` model method.\n'+
'\n'+
'Alternatively, if you are using `max` as a column/attribute name then '+
'please be advised that some things won\'t work as expected.\n'+
'\n'+
'For example:\n'+
'```\n'+
'// Get the largest account balance from amongst all account holders '+'\n'+
Expand All @@ -362,6 +359,9 @@ module.exports = function normalizeCriteria(criteria, modelIdentity, orm, meta)
' }'+'\n'+
'});'+'\n'+
'```\n'+
'Alternatively, if you are using `max` as a column/attribute name then '+
'please be advised that some things won\'t work as expected.\n'+
'\n'+
'For more info, see:\n'+
'http://sailsjs.com/docs/reference/waterline-orm/models/find'
);
Expand Down

0 comments on commit a9f6cb4

Please sign in to comment.