summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-28 10:15:52 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-28 10:15:52 +0200
commita05e70477f930816aa9707b1c09428f8f1a6f2e4 (patch)
tree33c3ef3be46e1a33f49f14f1fff42642a4076fdc
parent6501717fd58e7b731c1922c1669f18ce0c3da10a (diff)
downloadprocessor-a05e70477f930816aa9707b1c09428f8f1a6f2e4.tar.gz
processor-a05e70477f930816aa9707b1c09428f8f1a6f2e4.zip
send phases_update notification
-rw-r--r--worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 40e67b4..50c50d5 100644
--- a/worker.js
+++ b/worker.js
@@ -711,6 +711,10 @@ function flatten(obj) {
// …global about new matches
if (match_records.length > 0)
await ch.publish("amq.topic", "global", new Buffer("matches_update"));
+ // …about new phases
+ await Promise.map(telemetry_objects, async (t) =>
+ await ch.publish("amq.topic", "match." + t.match_api_id,
+ new Buffer("phases_update")) );
}
// Split participant API data into participant and participant_stats