fix(buffer): max call stack issue with buffer

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-29 10:39:12 +01:00
parent 0dfd28c9ce
commit d80754a6fd
4 changed files with 30 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ import { RedisBuffer } from './buffer';
type BufferType = IClickhouseBotEvent;
export class BotBuffer extends RedisBuffer<BufferType> {
constructor() {
super(TABLE_NAMES.events_bots, 500);
super('events_bots', 500);
}
protected async insertIntoDB(items: BufferType[]): Promise<void> {