File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,14 +71,8 @@ class ApplicationRequest {
7171 if ( cached ) return cached ;
7272
7373 if ( page < 0 ) {
74- const result = new Promise ( ( resolve , reject ) => {
75- this . depaginateRequest ( url ) . then ( async ( result ) => {
76- await setItem ( url + ":depaginated" , result ) ;
77- resolve ( result ) ;
78- } ) . catch ( ( err ) => {
79- reject ( err ) ;
80- } ) ;
81- } ) ;
74+ const result = await this . depaginateRequest ( url ) ;
75+ await setItem ( url + ":depaginated" , result ) ;
8276 return result ;
8377 }
8478
Original file line number Diff line number Diff line change @@ -72,14 +72,8 @@ class ClientRequest {
7272 if ( cached ) return cached ;
7373
7474 if ( page < 0 ) {
75- const result = new Promise ( ( resolve , reject ) => {
76- this . depaginateRequest ( url ) . then ( async ( result ) => {
77- await setItem ( url + ":depaginated" , result ) ;
78- resolve ( result ) ;
79- } ) . catch ( ( err ) => {
80- reject ( err ) ;
81- } ) ;
82- } ) ;
75+ const result = await this . depaginateRequest ( url ) ;
76+ await setItem ( url + ":depaginated" , result ) ;
8377 return result ;
8478 }
8579
You can’t perform that action at this time.
0 commit comments