From acb90130558e267c8f49ed8e6835c9242214b3ee Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 15 Apr 2017 17:06:29 +0200 Subject: fix duplicate items --- worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker.js b/worker.js index 74e0d66..9b4b146 100644 --- a/worker.js +++ b/worker.js @@ -226,7 +226,8 @@ function flatten(obj) { // map items: names/id -> name -> db let itms = [], item_use = (arr, action) => - arr.map((item) => { return { + arr.map((item, idx) => { return { + number: idx, participant_api_id: participant.id, item_id: item_db_map[item_name_map[item]], action: action -- cgit v1.3.1