Not directly async

This commit is contained in:
Markus Olsson 2023-10-05 11:22:16 +02:00
parent 51b86ee422
commit 40c9cf3211

View file

@ -1500,8 +1500,8 @@ export class StatsStore implements IStatsStore {
public recordOpenSubmoduleFromDiffCount = () =>
this.increment('openSubmoduleFromDiffCount')
private async increment(k: keyof NumericMeasures, n = 1) {
this.updateDailyMeasures(
private increment(k: keyof NumericMeasures, n = 1) {
return this.updateDailyMeasures(
m => ({ [k]: m[k] + n } as Pick<IDailyMeasures, keyof NumericMeasures>)
)
}