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

@@ -20,7 +20,7 @@ const BATCH_SIZE = process.env.BATCH_SIZE_PROFILES
type BufferType = IClickhouseProfile;
export class ProfileBuffer extends RedisBuffer<BufferType> {
constructor() {
super(TABLE_NAMES.profiles, BATCH_SIZE);
super('profiles', BATCH_SIZE);
}
// this will do a couple of things: