compare channel id on value basis

This commit is contained in:
Maciek Nowacki 2021-03-12 10:26:43 -07:00
parent 72d7ffd5c0
commit 0a89138a79

View File

@ -74,7 +74,7 @@ class XhrListener {
public relayEvent(event: string, archMsg: ArchimedesMessage): boolean {
logger.debugLog.info(`XhrListener:relayEvent(event: ${event}, channel: ${archMsg.reservation_no})`);
for (let c of this.#cm.channels) {
if (archMsg.reservation_no === c.id) {
if (archMsg.reservation_no == c.id) {
let dmCount: number = 0;
for (let client of c.clients) {
let nonce: string = crypto.randomBytes(4).toString("hex");