From c31e6290ec6cddf319bc03dda5ce5ddab51ce360 Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Tue, 26 Aug 2025 12:19:29 -0500 Subject: [PATCH] fix: remove 'NOW()' command from SQL INSERT because a timestamp is inserted into the time_submitted property of the record by default through the schema --- controllers/contactController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/contactController.js b/controllers/contactController.js index 8cf3440..808c27d 100644 --- a/controllers/contactController.js +++ b/controllers/contactController.js @@ -27,9 +27,8 @@ module.exports = (pool, transporter) => { email, phone, contact_method, - message, - time_submitted - ) VALUES($1, $2, $3, $4, $5, $6, $7, NOW()) + message + ) VALUES($1, $2, $3, $4, $5, $6, $7) RETURNING *`, [ firstName,