]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/rest/rest-data-source.ts
Better typescript typing for a better world
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / rest / rest-data-source.ts
index 2ef5d38da8883bdbec4cbf0ff54a89929f43fd85..7956637e0c36d4686b6e202c95f45c64ed40795d 100644 (file)
@@ -19,7 +19,7 @@ export class RestDataSource extends ServerDataSource {
   }
 
   protected addSortRequestOptions (requestOptions: RequestOptionsArgs) {
-    const searchParams = requestOptions.search as URLSearchParams
+    const searchParams = requestOptions.params as URLSearchParams
 
     if (this.sortConf) {
       this.sortConf.forEach((fieldConf) => {
@@ -33,7 +33,7 @@ export class RestDataSource extends ServerDataSource {
   }
 
   protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) {
-    const searchParams = requestOptions.search as URLSearchParams
+    const searchParams = requestOptions.params as URLSearchParams
 
     if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) {
       const perPage = this.pagingConf['perPage']