Parmn one not set twice.

This commit is contained in:
2023-07-23 11:34:30 -04:00
parent 6eecf28a64
commit e57ce5b36e
@@ -492,7 +492,6 @@ public class dbWarehouseHandler extends dbHandlerBase {
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_warehouse_transactions` (`warehouseUID`, `targetType`,`targetUID`, `type`,`resource`,`amount`,`date` ) VALUES (?,?,?,?,?,?,?)")) { 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.setLong(1, warehouseBuildingID);
preparedStatement.setString(2, targetType.name()); preparedStatement.setString(2, targetType.name());
preparedStatement.setLong(3, targetUUID); preparedStatement.setLong(3, targetUUID);