fix bdd entry
This commit is contained in:
@ -56,7 +56,7 @@ public class DatabaseConfig {
|
||||
public void updateAllPrices() {
|
||||
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);
|
||||
ResultSet rs = selectStmt.executeQuery()) {
|
||||
|
||||
Reference in New Issue
Block a user