2022-12-07 11:51:25 +01:00
|
|
|
class ActivityLogPublisher
|
|
|
|
|
|
|
|
def initialize
|
2023-01-09 21:46:58 +01:00
|
|
|
@redis = RedisConfiguration.new.connection
|
2022-12-07 11:51:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def publish(log_event)
|
|
|
|
@redis.publish('activity_log', Oj.dump(log_event))
|
|
|
|
end
|
|
|
|
end
|