renamed CLI

This commit is contained in:
Kasra Bigdeli
2019-01-06 23:13:38 -08:00
parent a7e33f3947
commit f0396b99ea
24 changed files with 93 additions and 93 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class HttpClient {
return new Promise(function (resolve, reject) {
// data.data here is the "data" field inside the API response! {status: 100, description: "Login succeeded", data: {…}}
if (!self.isDestroyed)
return resolve(data.data || { token: data.token }); // TODO remove || for API V2
return resolve(data.data);
Logger_1.default.dev('Destroyed then not called');
});
})