From a960e5ab04baba285c3fb9f277e82908a6b06ba4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Mar 2024 10:04:03 -0400 Subject: [PATCH] Loading of warehouse data --- src/engine/db/handlers/dbWarehouseHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 8aa4f9a7..c13e3b37 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -109,8 +109,8 @@ public class dbWarehouseHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery()) { while (rs.next()) { - int cityUID = rs.getInt("cityUID"); - JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template")); + int cityUID = rs.getInt("cityUUID"); + JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("warehouse")); City city = City.getCity(cityUID); city.warehouse = new Warehouse(jsonObject); }