Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
fix(adapter): should ignore all messages unless v2messageType is 'V2M…
Browse files Browse the repository at this point in the history
…essage'
  • Loading branch information
jonfreedman committed Aug 23, 2016
1 parent d8bf020 commit 0a9ec3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class SymphonyAdapter extends Adapter
.then (response) =>
if response?
@robot.logger.debug "Received #{response.length ? 0} datafeed messages"
@_receiveMessage msg for msg in response when msg.v2messageType = 'V2Message'
@_receiveMessage msg for msg in response when msg.v2messageType is 'V2Message'
@emit 'poll', id
.fail (err) =>
@robot.emit 'error', new Error("Unable to read datafeed #{id}: #{err}")
Expand Down

0 comments on commit 0a9ec3e

Please sign in to comment.