fix: cron jobs and brightpearl auto refresh (#107)
* fix: adds automatic refresh of tokens * fix: send options to plugin loaders * fix: adds README optional inventory sync
This commit is contained in:
@@ -41,7 +41,11 @@ class BrightpearlClient {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
data: qs.stringify(params),
|
||||
}).then(({ data }) => data)
|
||||
})
|
||||
.then(({ data }) => data)
|
||||
.catch((err) => {
|
||||
throw err
|
||||
})
|
||||
}
|
||||
|
||||
constructor(options, onRefreshToken) {
|
||||
|
||||
Reference in New Issue
Block a user