Fix event detection failure.

There was a typo in the channel detection logic, resulting
in bogus events full of `undefined` data values.

Fixes #115.
This commit is contained in:
D. Berge
2021-05-24 18:30:53 +02:00
parent 5708ed1a11
commit caae656aae

View File

@@ -109,7 +109,7 @@ class DetectSOLEOL {
}
async run (data) {
if (!data || !data.channel === "realtime") {
if (!data || data.channel !== "realtime") {
return;
}