From 7afbb169e2e97803ac4574ce4309f0e4e7d3e5ce Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sat, 30 Dec 2023 18:53:32 -0500 Subject: [PATCH] Another sql syntax fix --- utilities/sqlutil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/sqlutil.js b/utilities/sqlutil.js index a09c214..1425bdf 100644 --- a/utilities/sqlutil.js +++ b/utilities/sqlutil.js @@ -116,7 +116,7 @@ async function registerAttachmentIfMissing(attachment_snowflake, message_snowfla return true } else { 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 (?, ?, ?, ?, ?, ?, ?)", [attachment_snowflake, message_snowflake, attachment_name, attachment_description, attachment_timestamp, attachment_mime_type, attachment_url] ).then(([rows, fields]) => {