This commit is contained in:
cay 2026-04-09 10:19:38 +01:00
parent d0284e4f88
commit 2dd5692d31

6
app.js
View File

@ -24,7 +24,7 @@ const blackmarket = require("./routes/blackmarket.route");
const mineRoute = require("./routes/mine.route");
const carddeckRoutes = require("./routes/carddeck.route");
const arenaRoutes = require("./routes/arena.route");
const { registerArenaHandlers } = require("./sockets/arena_socket");
const { registerArenaHandlers } = require("./sockets/arena");
const { registerChatHandlers } = require("./sockets/chat");
const boosterRoutes = require("./routes/booster.route");
@ -202,8 +202,8 @@ app.get("/api/building/:id", requireLogin, async (req, res) => {
level: building.level,
points: building.points,
nextLevelPoints: nextLevel[0]?.required_points || null,
description: info[0].description,
history: info[0].history,
description: buildingInfo.description || "",
history: buildingInfo.history || "",
upgradeCost: nextLevel[0]
? `${nextLevel[0].wood} Holz, ${nextLevel[0].stone} Stein, ${nextLevel[0].gold} Gold`
: "Max Level erreicht",