mirror of
https://github.com/caprover/caprover
synced 2026-09-22 22:55:34 +00:00
renamed CLI
This commit is contained in:
@@ -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');
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user