diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 15:17:55 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 15:17:55 +0200 |
| commit | d40a7e53d40ffbf249b998472696a3ee483cf005 (patch) | |
| tree | d9818630dc12b92377ad9e1505a6fbe794c6784a | |
| parent | cc815bba50bd5a71106430e1261b39f918f9187b (diff) | |
| download | bridge-d40a7e53d40ffbf249b998472696a3ee483cf005.tar.gz bridge-d40a7e53d40ffbf249b998472696a3ee483cf005.zip | |
tell apigrabber to send progress report to web
| -rw-r--r-- | server.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
