hof 21.0.17-axios-beta → 21.0.18-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/model/index.js +5 -8
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -143,14 +143,11 @@ module.exports = class Model extends EventEmitter {
|
|
143
143
|
this.emit('success', data, originalSettings, statusCode, responseTime);
|
144
144
|
resolve(data);
|
145
145
|
}
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
// } else {
|
152
|
-
// resolve(data);
|
153
|
-
// }
|
146
|
+
if (err) {
|
147
|
+
reject(err);
|
148
|
+
} else {
|
149
|
+
resolve(data);
|
150
|
+
}
|
154
151
|
};
|
155
152
|
this._request(settings)
|
156
153
|
.then(response => {
|