Fixed helpers.build.uri to check for uuid and name as well
diff --git a/helpers/build.js b/helpers/build.js
index 13936d8..7c0bd11 100644
--- a/helpers/build.js
+++ b/helpers/build.js
@@ -13,12 +13,13 @@
module.exports = {
uri: function(client, options) {
+ console.log(options.uuidOrName)
return urljoin(
client.baseUrl,
client.orgId,
client.appId,
options.path || options.type,
- _.isString(options.uuidOrName) ? options.uuidOrName : ""
+ _.first([options.uuidOrName, options.uuid, options.name, ""].filter(_.isString))
)
},
headers: function(client) {