File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dsbmobile" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " A Javascript wrapper for the dsbmobile api" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export default class Dsbmobile {
118
118
* @returns A new `TimeTable` resource
119
119
*/
120
120
public async getTimetable ( ) : Promise < TimeTable > {
121
- this . checkToken ( ) ;
121
+ await this . checkToken ( ) ;
122
122
let resp = await this . requester . get (
123
123
`/dsbtimetables?authid=${ this . token } ` ,
124
124
) ;
@@ -140,7 +140,7 @@ export default class Dsbmobile {
140
140
* @returns A new `NewsPostCollection`
141
141
*/
142
142
public async getNewsPosts ( ) : Promise < NewsPostCollection > {
143
- this . checkToken ( ) ;
143
+ await this . checkToken ( ) ;
144
144
let resp = await this . requester . get ( `/newstab?authid=${ this . token } ` ) ;
145
145
146
146
let news : NewsPost [ ] = [ ] ;
@@ -158,7 +158,7 @@ export default class Dsbmobile {
158
158
* @returns A new `DocumentPostCollection`
159
159
*/
160
160
public async getDocumentPosts ( ) : Promise < DocumentPostCollection > {
161
- this . checkToken ( ) ;
161
+ await this . checkToken ( ) ;
162
162
let resp = await this . requester . get (
163
163
`/dsbdocuments?authid=${ this . token } ` ,
164
164
) ;
You can’t perform that action at this time.
0 commit comments