From b91bc29ef192572702fa5332780bc2b41beb129f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 15 Nov 2024 09:22:37 +0100 Subject: [PATCH] Use bind for inline functions --- .../instance-stats/instance-stats-service.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib/features/instance-stats/instance-stats-service.ts b/src/lib/features/instance-stats/instance-stats-service.ts index 41d6f69aa054..48354df6710e 100644 --- a/src/lib/features/instance-stats/instance-stats-service.ts +++ b/src/lib/features/instance-stats/instance-stats-service.ts @@ -317,16 +317,21 @@ export class InstanceStatsService { this.countPreviousDayHourlyMetricsBuckets(), this.memorize( 'maxFeatureEnvironmentStrategies', - this.featureStrategiesReadModel - .getMaxFeatureEnvironmentStrategies, + this.featureStrategiesReadModel.getMaxFeatureEnvironmentStrategies.bind( + this.featureStrategiesReadModel, + ), ), this.memorize( 'maxConstraintValues', - this.featureStrategiesReadModel.getMaxConstraintValues, + this.featureStrategiesReadModel.getMaxConstraintValues.bind( + this.featureStrategiesReadModel, + ), ), this.memorize( 'maxConstraintsPerStrategy', - this.featureStrategiesReadModel.getMaxConstraintsPerStrategy, + this.featureStrategiesReadModel.getMaxConstraintsPerStrategy.bind( + this.featureStrategiesReadModel, + ), ), ]);