Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit d0e0f04

Browse files
authored
Merge pull request #281 from North-Two-Five/return-flush-promise
returning promise from flush
2 parents b10a274 + 153bace commit d0e0f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class Analytics {
275275
req.timeout = typeof this.timeout === 'string' ? ms(this.timeout) : this.timeout
276276
}
277277

278-
this.axiosInstance.post(`${this.host}${this.path}`, data, req)
278+
return this.axiosInstance.post(`${this.host}${this.path}`, data, req)
279279
.then(() => done())
280280
.catch(err => {
281281
if (err.response) {

0 commit comments

Comments
 (0)