Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Nov 22, 2023
1 parent 18729c4 commit da7dd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/mqtt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ class MqttAdapter extends Adapter {
dup: packet.dup,
length: packet.length,
}

const id = this.parsedAsyncAPI.channels().filter(channel => channel.address() === packet.topic)[0].id()
return new GleeMessage({
payload: packet.payload,
headers,
channel: packet.topic,
channel: id,
})
}

Expand Down

0 comments on commit da7dd05

Please sign in to comment.