fix: remove extra placeholder in SQL INSERT command to match payload array.
This commit is contained in:
@@ -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
|
||||
]
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user