Browse Source

frontend work

master
peter 5 years ago
parent
commit
0aceda9444
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/backend/Components/Item/ItemManager.ts

+ 5
- 3
src/backend/Components/Item/ItemManager.ts View File

@@ -354,13 +354,15 @@ implements FrontworkComponent<ItemManagerIfc, ItemManagerFeatureIfc>, TableDefin
354 354
                 Object.entries(itemTiers)
355 355
                 .map((kv) => Promise.all(
356 356
                     kv[1].map(i => this.fetchItem(i)
357
-                        .then(item => this.admin
357
+                        .then(item => 
358
+                            this.admin
358 359
                             .knex('items')
359 360
                             .insert({
360 361
                                 tier: kv[0],
361 362
                                 ...item
362
-                            })
363
-                    ))
363
+                            }).catch(() => {})
364
+                        )
365
+                    )
364 366
                 ))
365 367
             )
366 368
         }

Loading…
Cancel
Save