From 684a5459b39ede4a53d6d916ca3af4d9d92d814d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 15:02:15 -0400 Subject: [PATCH] Worker saved upon submit --- src/engine/db/handlers/dbWarehouseHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 032cbfc1..f9976885 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -159,7 +159,7 @@ public class dbWarehouseHandler extends dbHandlerBase { try (Connection connection = DbManager.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_workorders` (`workorderID`, `workorder`) VALUES (?, ?) " + - "ON DUPLICATE KEY UPDATE `workoder` = VALUES(`workoder`)")) { + "ON DUPLICATE KEY UPDATE `workorder` = VALUES(`workorder`)")) { preparedStatement.setInt(1, workOrder.workOrderID); preparedStatement.setString(2, warehouseJSON.toString());