diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index 05594ac722..9a6c247463 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -117,7 +117,7 @@ export default class Connection { this.subscribingNotes[payload.id]++; - if (this.subscribingNotes[payload.id] == 1) { + if (this.subscribingNotes[payload.id] === 1) { this.subscriber.on(`noteStream:${payload.id}`, this.onNoteStreamMessage); }