fix <client>.sessions.fetch()

```
{
  method: 'get',
  path: '/auth/session',
  code: 0,
  httpStatus: 404,
  captcha: null,
  requestData: { json: undefined, files: [] }
}
```
This commit is contained in:
March 7th 2022-10-02 21:50:23 +07:00
parent a1acbf2721
commit f5745acd24

View File

@ -17,7 +17,7 @@ class SessionManager extends CachedManager {
*/ */
fetch() { fetch() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.client.api.auth.session this.client.api.auth.sessions
.get() .get()
.then(data => { .then(data => {
const allData = data.user_sessions; const allData = data.user_sessions;