Skip to content

Commit

Permalink
fix: missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
duyhungtnn committed Dec 10, 2024
1 parent c34970e commit 0747cd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ export class BKTClientImpl implements Bucketeer {

private saveErrorMetricsEvent(tag: string, e: any, apiId: NodeApiIds) {
const event = toErrorMetricsEvent(e, tag, apiId);
this.eventStore.add(event);
this.registerEvents();
if (event) {
this.eventStore.add(event);
this.registerEvents();
}
}

async getEvaluation(user: User, featureId: string): Promise<Evaluation | null> {
Expand Down

0 comments on commit 0747cd6

Please sign in to comment.