Skip to content

Commit

Permalink
๐Ÿš‘ !HOTFIX: redis on subscribe ํด๋ผ์ด์–ธํŠธ ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunie committed Dec 4, 2024
1 parent e999fd0 commit 4f7258d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BE/src/common/redis/redis.domain-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export class RedisDomainService {
}

on(callback: (message: string) => void) {
this.redis.on('message', (message) => {
this.subscriber.on('message', (message) => {
callback(message);
});
}

async unsubscribe(channel: string) {
return this.redis.unsubscribe(channel);
return this.subscriber.unsubscribe(channel);
}

async increment(key: string) {
Expand Down

0 comments on commit 4f7258d

Please sign in to comment.