mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: separate prettier from eslint
This commit is contained in:
committed by
Thea Schöbl
parent
939fb6ef0f
commit
a88d000ccd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 StApps
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -61,11 +61,7 @@ export class HebisDataProvider extends DataProvider {
|
||||
super(stAppsWebHttpClient, storageProvider);
|
||||
this.storageProvider = storageProvider;
|
||||
this.httpClient = httpClient;
|
||||
this.client = new Client(
|
||||
stAppsWebHttpClient,
|
||||
this.backendUrl,
|
||||
this.appVersion,
|
||||
);
|
||||
this.client = new Client(stAppsWebHttpClient, this.backendUrl, this.appVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,26 +84,21 @@ export class HebisDataProvider extends DataProvider {
|
||||
let page: number | undefined = searchRequest.page;
|
||||
|
||||
if (typeof page === 'undefined') {
|
||||
const preFlightResponse =
|
||||
await this.client.invokeRoute<HebisSearchResponse>(
|
||||
this.hebisSearchRoute,
|
||||
undefined,
|
||||
{
|
||||
...searchRequest,
|
||||
page: 0,
|
||||
},
|
||||
);
|
||||
const preFlightResponse = await this.client.invokeRoute<HebisSearchResponse>(
|
||||
this.hebisSearchRoute,
|
||||
undefined,
|
||||
{
|
||||
...searchRequest,
|
||||
page: 0,
|
||||
},
|
||||
);
|
||||
|
||||
page = preFlightResponse.pagination.total;
|
||||
}
|
||||
|
||||
return this.client.invokeRoute<HebisSearchResponse>(
|
||||
this.hebisSearchRoute,
|
||||
undefined,
|
||||
{
|
||||
...searchRequest,
|
||||
page,
|
||||
},
|
||||
);
|
||||
return this.client.invokeRoute<HebisSearchResponse>(this.hebisSearchRoute, undefined, {
|
||||
...searchRequest,
|
||||
page,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user