Closed criscmaia closed 7 years ago
"UPDATE channelMessages AS t1 INNER JOIN (" + "SELECT userTimezoneOffset FROM channelMessages WHERE slackMessageId = ? LIMIT 1)" + " AS t2 SET t1.deletedLocaltime = DATE_ADD(UTC_TIMESTAMP(), INTERVAL (3600 * t2.userTimezoneOffset) SECOND)" + " WHERE slackMessageId = ?;"
check your sql query it is the only thing that could be wrong.
nvm Slack was being funny again and kept on sending multiple delete requests. Fixed that can you test that?
Fixed
"UPDATE channelMessages AS t1 INNER JOIN (" + "SELECT userTimezoneOffset FROM channelMessages WHERE slackMessageId = ? LIMIT 1)" + " AS t2 SET t1.deletedLocaltime = DATE_ADD(UTC_TIMESTAMP(), INTERVAL (3600 * t2.userTimezoneOffset) SECOND)" + " WHERE slackMessageId = ?;"
check your sql query it is the only thing that could be wrong.