Explorar el Código

frontend work

master
peter hace 5 años
padre
commit
0aceda9444
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5
    3
      src/backend/Components/Item/ItemManager.ts

+ 5
- 3
src/backend/Components/Item/ItemManager.ts Ver fichero

@@ -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…
Cancelar
Guardar