From 00bc097abb924e4ddf88c224e353ff2f9b6c97e6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 23 Mar 2021 14:56:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=9F=E3=83=83=E3=83=88=E5=BF=98?= =?UTF-8?q?=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/stream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/stream.ts b/src/services/stream.ts index 75385847c..a8855b62e 100644 --- a/src/services/stream.ts +++ b/src/services/stream.ts @@ -1,4 +1,4 @@ -import redis from '../db/redis'; +import { redisClient } from '../db/redis'; import { User } from '../models/entities/user'; import { Note } from '../models/entities/note'; import { UserList } from '../models/entities/user-list'; @@ -14,7 +14,7 @@ class Publisher { { type: type, body: null } : { type: type, body: value }; - redis.publish(config.host, JSON.stringify({ + redisClient.publish(config.host, JSON.stringify({ channel: channel, message: message }));