From b6e9f9a339833151da0f748b249594053d84f67f Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 17 Aug 2023 11:11:32 -0400 Subject: [PATCH] fix: only disable equipping/unequipping in a fight --- src/server/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/api.ts b/src/server/api.ts index 96adb4e..923e716 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -451,13 +451,13 @@ app.post('/player/stat/:stat', authEndpoint, async (req: AuthRequest, res: Respo res.send(renderPlayerBar(req.player, equippedItems) + renderProfilePage(req.player)); }); -app.get('/player/skills', authEndpoint, blockPlayerInFight, async (req: AuthRequest, res: Response) => { +app.get('/player/skills', authEndpoint, async (req: AuthRequest, res: Response) => { const skills = await getPlayerSkills(req.player.id); res.send(renderSkills(skills)); }); -app.get('/player/inventory', authEndpoint, blockPlayerInFight, async (req: AuthRequest, res: Response) => { +app.get('/player/inventory', authEndpoint, async (req: AuthRequest, res: Response) => { const [inventory, items] = await Promise.all([ getInventory(req.player.id), getPlayersItems(req.player.id) -- 2.25.1