Fixed build.GET options.uuidOrName to check for _.isString()
diff --git a/helpers/build.js b/helpers/build.js
index 7c0bd11..154237b 100644
--- a/helpers/build.js
+++ b/helpers/build.js
@@ -13,7 +13,6 @@
module.exports = {
uri: function(client, options) {
- console.log(options.uuidOrName)
return urljoin(
client.baseUrl,
client.orgId,
@@ -104,9 +103,7 @@
options.query = _.first([options.query, args[0]].filter(function(property) {
return (property instanceof UsergridQuery)
}))
- options.uuidOrName = _.last([options.uuidOrName, options.uuid, options.name, args[1]].filter(function(property) {
- return (property)
- }))
+ options.uuidOrName = _.last([options.uuidOrName, options.uuid, options.name, args[1]].filter(_.isString))
options.entity = _.first([options.entity, args[0]].filter(function(property) {
return (property instanceof UsergridEntity)