summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/server.js b/server.js
index 66c4af5..ca1ea83 100644
--- a/server.js
+++ b/server.js
@@ -60,8 +60,11 @@ function grabPlayer(name, region, last_match_created_date, id) {
};
console.log("requesting update for", name, region);
- return ch.sendToQueue("grab", new Buffer(JSON.stringify(payload)),
- { persistent: true, type: "matches" });
+ return ch.sendToQueue("grab", new Buffer(JSON.stringify(payload)), {
+ persistent: true,
+ type: "matches",
+ headers: { notify: "player." + name }
+ });
}
// search for a player name in one region