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