fixed questdb files

This commit is contained in:
Boki 2025-06-19 21:14:44 -04:00
parent 4aa8b7a42d
commit 691d259a67
3 changed files with 6 additions and 18 deletions

View file

@ -1,5 +1,5 @@
import { getLogger } from '@stock-bot/logger';
import type { BaseTimeSeriesData, InfluxLineData, InfluxWriteOptions } from './types';
import type { InfluxLineData, InfluxWriteOptions } from './types';
// Interface to avoid circular dependency
interface QuestDBClientInterface {
@ -185,11 +185,11 @@ export class QuestDBInfluxWriter {
};
if (execution.orderId) {
tags.order_id = execution.orderId;
tags['order_id'] = execution.orderId;
}
if (execution.strategy) {
tags.strategy = execution.strategy;
tags['strategy'] = execution.strategy;
}
await this.writePoint(
@ -224,7 +224,7 @@ export class QuestDBInfluxWriter {
};
if (metrics.errorCode) {
tags.error_code = metrics.errorCode;
tags['error_code'] = metrics.errorCode;
}
await this.writePoint(