From 9e7ab1e78dab83303349d72506422fb3781ad02c Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Tue, 26 Aug 2025 12:00:52 -0500 Subject: [PATCH] fix: remove extra placeholder in SQL INSERT command to match payload array. --- controllers/contactController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/contactController.js b/controllers/contactController.js index f536fa3..e27d842 100644 --- a/controllers/contactController.js +++ b/controllers/contactController.js @@ -29,7 +29,7 @@ module.exports = (pool, transporter) => { contact_method, message, time_submitted - ) VALUES($1, $2, $3, $4, $5, $6, $7, $8, NOW()) + ) VALUES($1, $2, $3, $4, $5, $6, $7, NOW()) RETURNING *`, [ firstName, @@ -38,7 +38,7 @@ module.exports = (pool, transporter) => { email, phone, contactMethod, - message, + message ] );