diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-23 22:09:13 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-23 22:09:13 +0200 |
| commit | 1d2fe4368459ff1e30e577afef07d32e41a75bb5 (patch) | |
| tree | 0119b96ca87241c0c2fe7d49f270f1c483a84ae4 | |
| parent | 097bde1b1f4097b36966b3a9913d743890822a87 (diff) | |
| download | processor-1d2fe4368459ff1e30e577afef07d32e41a75bb5.tar.gz processor-1d2fe4368459ff1e30e577afef07d32e41a75bb5.zip | |
make missing map debugging easier
| -rw-r--r-- | worker.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -424,7 +424,12 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { ppi.item_sells = itemSells; // csv for backwards compatibility (TODO) - pas.items = pas.items.map((i) => item_id(i).toString()).join(","); + try { + pas.items = pas.items.map((i) => item_id(i).toString()).join(","); + } catch (err) { + logger.error(pas.items); + throw err; + } // csv with count seperated by ; pas.itemGrants = Object.keys(pas.itemGrants) .map((key) => item_id(key) + ";" + pas.itemGrants[key]).join(","); |
