This commit is contained in:
Alessio 2024-03-13 18:07:32 -07:00
parent 50e2edc2b9
commit 087968c505

View File

@ -121,7 +121,9 @@ func (p Profile) SaveDMTrove(trove DMTrove, should_download bool) {
url.IsContentDownloaded = true url.IsContentDownloaded = true
// Update it in the DB // Update it in the DB
_, err = p.DB.NamedExec(`update chat_message_urls set is_content_downloaded = :is_content_downloaded where id = :id`, url) _, err = p.DB.NamedExec(`
update chat_message_urls set is_content_downloaded = :is_content_downloaded where chat_message_id = :chat_message_id
`, url)
if err != nil { if err != nil {
panic(err) panic(err)
} }