File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ class SnekSession extends CookieSession {
294294 async customTask < T > ( type : string , data : DocumentNode , variables : object ) {
295295 return this . tasks . run < T > ( type , data , {
296296 ...variables ,
297- token : this . token ,
297+ token : await this . upToDateToken ( ) ,
298298 refreshToken : this . refreshToken ,
299299 } ) ;
300300 }
Original file line number Diff line number Diff line change @@ -50,7 +50,11 @@ class SnekTasks extends TaskError {
5050 this . user = new SnekGqlUserTasks ( this ) ;
5151 }
5252
53- async run < T > ( type : string , query : DocumentNode , variables : object ) {
53+ async run < T > (
54+ type : string ,
55+ query : DocumentNode ,
56+ variables : object
57+ ) : Promise < ApolloResult < T > > {
5458 let response : ApolloResult < T > ;
5559
5660 if ( type === "query" ) {
You can’t perform that action at this time.
0 commit comments