diff --git a/src/db/fluidPrices.json b/src/db/fluidPrices.json index 2189788870321c50eed2d8e3fed56937f8a1b7e2..42e6b71677aa8a30bed782030b93ea8086041060 100644 --- a/src/db/fluidPrices.json +++ b/src/db/fluidPrices.json @@ -81,6 +81,12 @@ "fluidType": 0, "price": 0.1558, "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 }, { diff --git a/src/services/fluidsPrices.service.ts b/src/services/fluidsPrices.service.ts index 90b8c66f28134a4e77d7ad9b200ffdcbfcf0a506..bea791b40e0adec15fe2da943f3df4cc9c6c79ce 100644 --- a/src/services/fluidsPrices.service.ts +++ b/src/services/fluidsPrices.service.ts @@ -17,7 +17,8 @@ export default class FluidPricesService { * @returns {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 { data: fluidsPrices, }: QueryResult<FluidPrice[]> = await this._client.query(query)