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

Commit 183125e

Browse files
committed
returning promise from flush
1 parent 9e80973 commit 183125e

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)