apps/api: reduce TTL GetConfigurations, GetDealers, GetModels

This commit is contained in:
vchikalkin 2024-02-21 22:38:07 +03:00
parent c5683f7edd
commit f3518244ab

View File

@ -8,12 +8,12 @@ export const queryTTL: Record<string, number | false> = {
GetBrands: seconds().fromHours(3),
GetCoefficients: seconds().fromHours(12),
GetConfiguration: seconds().fromHours(3),
GetConfigurations: seconds().fromHours(3),
GetConfigurations: seconds().fromMinutes(15),
GetCurrencyChanges: seconds().fromHours(1),
GetDealer: seconds().fromHours(1),
GetDealerPerson: seconds().fromHours(1),
GetDealerPersons: seconds().fromHours(1),
GetDealers: seconds().fromHours(1),
GetDealers: seconds().fromMinutes(15),
GetFuelCards: seconds().fromHours(12),
GetGPSBrands: seconds().fromHours(24),
GetGPSModels: seconds().fromHours(24),
@ -28,7 +28,7 @@ export const queryTTL: Record<string, number | false> = {
GetLeaseObjectTypes: seconds().fromHours(24),
GetLeasingWithoutKaskoTypes: seconds().fromHours(12),
GetModel: seconds().fromHours(3),
GetModels: seconds().fromHours(3),
GetModels: seconds().fromMinutes(15),
GetOpportunities: false,
GetOpportunity: false,
GetOpportunityUrl: seconds().fromHours(12),