diff --git a/src/base.ts b/src/base.ts index c7c60672594..f2c043539c3 100644 --- a/src/base.ts +++ b/src/base.ts @@ -52,7 +52,7 @@ export default abstract class extends Command { await this.recordActionMetric(callable); } - async recordActionMetric(recordFunc: (recorder: Recorder) => void) { + async recordActionMetric(recordFunc: (recorder: Recorder) => Promise) { try { await recordFunc(this.recorder); await this.recorder.flush();