summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-06-14 13:16:36 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-06-14 13:16:36 +0200
commit86e7ba6711535181ca6b7602c9ddbb2b6d0d9dd7 (patch)
treef3653b8faa065702f3b5d951385eaf37dd1ef237
parent76d34a2df37ec24150cd020984ac7e2ae5e85873 (diff)
downloadshrinker-86e7ba6711535181ca6b7602c9ddbb2b6d0d9dd7.tar.gz
shrinker-86e7ba6711535181ca6b7602c9ddbb2b6d0d9dd7.zip
send match_update to player.name
-rw-r--r--worker.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 308bcc7..971e24b 100644
--- a/worker.js
+++ b/worker.js
@@ -796,6 +796,8 @@ function flatten(obj) {
m.properties.headers.notify + "." + mat.api_id,
new Buffer("match_update"))
);
+ await ch.publish("amq.topic", m.properties.headers.notify,
+ new Buffer("match_update"));
}
// player obj updated
if (m.properties.type == "player") notif = "stats_update";