amygdala icon indicating copy to clipboard operation
amygdala copied to clipboard

find doesn't work if ids are numerical

Open fridaystreet opened this issue 8 years ago • 0 comments

.find('users', 1) doesn't return anything. You need to parse the number in as a string .find('users', '1')

The find function doesn't have support for numerical ids. Possible to just change line 503

} else if (Object.prototype.toString.call(query) === '[object String]') {

to

} else if (Object.prototype.toString.call(query) === '[object String]' || Object.prototype.toString.call(query) === '[object Number]') {

Cheers Paul

ps nice little library, lots of potential.

fridaystreet avatar Apr 20 '17 09:04 fridaystreet