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,
|
||||
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,
|
||||
|
Reference in New Issue
Block a user