enable publish on event
This commit is contained in:
@@ -36,15 +36,17 @@ export class EventBuffer extends RedisBuffer<IClickhouseEvent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public onInsert?: OnInsert<IClickhouseEvent> | undefined = (event) => {
|
public onInsert?: OnInsert<IClickhouseEvent> | undefined = (event) => {
|
||||||
// redisPub.publish(
|
redisPub.publish(
|
||||||
// 'event:received',
|
'event:received',
|
||||||
// SuperJSON.stringify(transformEvent(event))
|
SuperJSON.stringify(transformEvent(event))
|
||||||
// );
|
);
|
||||||
// this.redis.setex(
|
if (event.profile_id) {
|
||||||
// `live:event:${event.project_id}:${event.profile_id}`,
|
this.redis.setex(
|
||||||
// '',
|
`live:event:${event.project_id}:${event.profile_id}`,
|
||||||
// 60 * 5
|
'',
|
||||||
// );
|
60 * 5
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public onCompleted?: OnCompleted<IClickhouseEvent> | undefined = (
|
public onCompleted?: OnCompleted<IClickhouseEvent> | undefined = (
|
||||||
|
|||||||
Reference in New Issue
Block a user