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,
|
contact_method,
|
||||||
message,
|
message,
|
||||||
time_submitted
|
time_submitted
|
||||||
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, NOW())
|
) VALUES($1, $2, $3, $4, $5, $6, $7, NOW())
|
||||||
RETURNING *`,
|
RETURNING *`,
|
||||||
[
|
[
|
||||||
firstName,
|
firstName,
|
||||||
@@ -38,7 +38,7 @@ module.exports = (pool, transporter) => {
|
|||||||
email,
|
email,
|
||||||
phone,
|
phone,
|
||||||
contactMethod,
|
contactMethod,
|
||||||
message,
|
message
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user