Avoid delete again a message from plugin DataChannel

This commit is contained in:
Gustavo Trott 2024-04-01 10:17:06 -03:00
parent 1e6f7d9136
commit 5660f2c941

View File

@ -101,7 +101,8 @@ object PluginDataChannelMessageDAO {
DatabaseConnection.db.run(
sqlu"""UPDATE "pluginDataChannelMessage" SET
"deletedAt" = current_timestamp
WHERE "meetingId" = ${meetingId}
WHERE "deletedAt" is null
AND "meetingId" = ${meetingId}
AND "pluginName" = ${pluginName}
AND "dataChannel" = ${dataChannel}
AND "messageId" = ${messageId}"""