Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maamalama committed Sep 18, 2024
1 parent f5d4797 commit 519311d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions valhalla/jawn/src/managers/score/ScoreManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { KafkaProducer } from "../../lib/clients/KafkaProducer";
import { HeliconeScoresMessage } from "../../lib/handlers/HandlerContext";
import * as Sentry from "@sentry/node";
import { ShutdownService } from "../../lib/shared/ShutdownService";
import { BaseManager } from "../BaseManager";

type Scores = Record<string, number | boolean>;
const delayMs = 10 * 60 * 1000; // 10 minutes in milliseconds
Expand All @@ -14,11 +15,12 @@ export interface ScoreRequest {
scores: Scores;
}

export class ScoreManager {
export class ScoreManager extends BaseManager {
private scoreStore: ScoreStore;
private kafkaProducer: KafkaProducer;

constructor(private authParams: AuthParams) {
constructor(authParams: AuthParams) {
super(authParams);
this.scoreStore = new ScoreStore(authParams.organizationId);
this.kafkaProducer = new KafkaProducer();
}
Expand Down

0 comments on commit 519311d

Please sign in to comment.