fix bdd entry

This commit is contained in:
Σlie *
2026-02-27 20:09:35 +01:00
parent c5575e5441
commit 06d3c427f8

View File

@ -56,7 +56,7 @@ public class DatabaseConfig {
public void updateAllPrices() { public void updateAllPrices() {
String selectQuery = "SELECT id, link FROM products"; String selectQuery = "SELECT id, link FROM products";
String insertQuery = "INSERT INTO price_history (product_id, price, date_check) VALUES (?, ?, CURRENT_TIMESTAMP)"; String insertQuery = "INSERT INTO price_history (product_id, price, checked_at) VALUES (?, ?, CURRENT_TIMESTAMP)";
try (PreparedStatement selectStmt = connection.prepareStatement(selectQuery); try (PreparedStatement selectStmt = connection.prepareStatement(selectQuery);
ResultSet rs = selectStmt.executeQuery()) { ResultSet rs = selectStmt.executeQuery()) {