Browse Source

Parmn one not set twice.

master
MagicBot 1 year ago
parent
commit
e57ce5b36e
  1. 1
      src/engine/db/handlers/dbWarehouseHandler.java

1
src/engine/db/handlers/dbWarehouseHandler.java

@ -492,7 +492,6 @@ public class dbWarehouseHandler extends dbHandlerBase { @@ -492,7 +492,6 @@ public class dbWarehouseHandler extends dbHandlerBase {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_warehouse_transactions` (`warehouseUID`, `targetType`,`targetUID`, `type`,`resource`,`amount`,`date` ) VALUES (?,?,?,?,?,?,?)")) {
preparedStatement.setInt(1, amount);
preparedStatement.setLong(1, warehouseBuildingID);
preparedStatement.setString(2, targetType.name());
preparedStatement.setLong(3, targetUUID);

Loading…
Cancel
Save