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

returning promise from flush #281

Merged
merged 2 commits into from
May 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Analytics {
req.timeout = typeof this.timeout === 'string' ? ms(this.timeout) : this.timeout
}

this.axiosInstance.post(`${this.host}${this.path}`, data, req)
return this.axiosInstance.post(`${this.host}${this.path}`, data, req)
.then(() => done())
.catch(err => {
if (err.response) {
Expand Down