Another sql syntax fix
This commit is contained in:
parent
bdb9d4b807
commit
7afbb169e2
@ -116,7 +116,7 @@ async function registerAttachmentIfMissing(attachment_snowflake, message_snowfla
|
|||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return await connection_pool.query(
|
return await connection_pool.query(
|
||||||
"INSERT INTO (attachment_snowflake, message_snowflake, attachment_name, attachment_description, attachment_timestamp, attachment_mime_type, attachment_url) " +
|
"INSERT INTO message_attachments (attachment_snowflake, message_snowflake, attachment_name, attachment_description, attachment_timestamp, attachment_mime_type, attachment_url) " +
|
||||||
"VALUES (?, ?, ?, ?, ?, ?, ?)",
|
"VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||||
[attachment_snowflake, message_snowflake, attachment_name, attachment_description, attachment_timestamp, attachment_mime_type, attachment_url]
|
[attachment_snowflake, message_snowflake, attachment_name, attachment_description, attachment_timestamp, attachment_mime_type, attachment_url]
|
||||||
).then(([rows, fields]) => {
|
).then(([rows, fields]) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user