Skip to content
Snippets Groups Projects
Commit 60a57dcf authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Merge branch 'feat/Add-new-elec-price' into 'dev'

Feat/add new elec price

See merge request web-et-numerique/llle_project/ecolyo!557
parents 9751a6fe 0a82a61d
Branches
Tags
3 merge requests!563chore(release): 1.7.4,!558chore(release): 1.7.3,!557Feat/add new elec price
...@@ -81,6 +81,12 @@ ...@@ -81,6 +81,12 @@
"fluidType": 0, "fluidType": 0,
"price": 0.1558, "price": 0.1558,
"startDate": "2021-08-01T00:00:00.000Z", "startDate": "2021-08-01T00:00:00.000Z",
"endDate": "2022-01-31T23:59:59.000Z"
},
{
"fluidType": 0,
"price": 0.174,
"startDate": "2022-02-01T00:00:00.000Z",
"endDate": null "endDate": null
}, },
{ {
......
...@@ -17,7 +17,8 @@ export default class FluidPricesService { ...@@ -17,7 +17,8 @@ export default class FluidPricesService {
* @returns {FluidPrice[]} * @returns {FluidPrice[]}
*/ */
public async getAllPrices(): Promise<FluidPrice[]> { public async getAllPrices(): Promise<FluidPrice[]> {
const query: QueryDefinition = Q(FLUIDPRICES_DOCTYPE) const query: QueryDefinition = Q(FLUIDPRICES_DOCTYPE).limitBy(900)
//TODO : handle case of 1000+ entries in doctype
const { const {
data: fluidsPrices, data: fluidsPrices,
}: QueryResult<FluidPrice[]> = await this._client.query(query) }: QueryResult<FluidPrice[]> = await this._client.query(query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment