fix: seed equipment info
authorxangelo <me@xangelo.ca>
Wed, 9 Aug 2023 15:02:19 +0000 (11:02 -0400)
committerxangelo <me@xangelo.ca>
Wed, 9 Aug 2023 15:02:19 +0000 (11:02 -0400)
src/server/api.ts

index b99640132ac5a89d3482a33b14c75edf994a8953..b50a9bf5cf4fa92d740d6a59a7ca670ba87b125e 100644 (file)
@@ -43,7 +43,7 @@ import { renderChatMessage } from './views/chat';
 // TEMP!
 import { createMonsters } from '../../seeds/monsters';
 import { createAllCitiesAndLocations } from '../../seeds/cities';
-import { createShopItems } from '../../seeds/shop_items';
+import { createShopItems, createShopEquipment } from '../../seeds/shop_items';
 import { Item, PlayerItem, ShopItem } from 'shared/items';
 import { equip, unequip } from './equipment';
 import { HealthPotionSmall } from '../shared/items/health_potion';
@@ -395,6 +395,7 @@ app.post('/chat', authEndpoint, async (req: AuthRequest, res: Response) => {
     }
     else if(msg === '/server lmnop refresh-shops') {
       await createShopItems();
+      await createShopEquipment();
       message = broadcastMessage('server', 'Refresh shop items');
     }
     else {