This commit is contained in:
Cay 2026-03-12 14:28:42 +00:00
parent 708d9ef526
commit a0ce1d61d7

2
app.js
View File

@ -95,7 +95,7 @@ app.get("/api/building/:id", async (req, res) => {
}
const [nextLevel] = await db.query(
"SELECT required_points, wood, stone FROM building_levels WHERE building_id=? AND level=?",
"SELECT required_points, wood, stone, gold FROM building_levels WHERE building_id=? AND level=?",
[buildingId, building.level + 1],
);