fix(salesforce): fix object refresh & socket closed error

This commit is contained in:
Evan Morikawa 2015-05-08 19:46:27 -07:00
parent f999de9b41
commit 354c1f0f1d

View file

@ -72,7 +72,7 @@ MetadataStore = Reflux.createStore
Promise.settle(promises)
_apiRequest: (type) ->
typePath = if type then "/#{type}/" else ""
typePath = if type then "/#{type}/" else "/"
new Promise (resolve, reject) =>
EdgehillAPI.request
path: "/metadata/#{@_namespaceId}#{typePath}"