summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-26 23:06:05 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-26 23:06:05 +0200
commit158eca43541a64cd6e73a272455707f4705c57ea (patch)
tree8c7e43d5c46efa81e3ec5f01b248b69060c00204
parent9bca8b27a2ba7e65509f29bc6338b1846633dc76 (diff)
downloadbridge-158eca43541a64cd6e73a272455707f4705c57ea.tar.gz
bridge-158eca43541a64cd6e73a272455707f4705c57ea.zip
new player from API: insert playerNames too
-rw-r--r--api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.js b/api.js
index e343fbf..9043ed1 100644
--- a/api.js
+++ b/api.js
@@ -59,6 +59,7 @@ async function api_playerByAttr(attr, val) {
finds.push({
"region": res.data[0].attributes.shardId,
"id": res.data[0].id,
+ "name": res.data[0].attributes.name,
"last_update": res.data[0].attributes.createdAt,
"source": "api"
});