forked from jmug/stoatchat
fix: delete attachments by used_for.id and add corresponding index
This commit is contained in:
@@ -261,7 +261,7 @@ impl AbstractChannels for MongoDb {
|
||||
|
||||
// Delete associated attachments
|
||||
self.delete_many_attachments(doc! {
|
||||
"object_id": &id
|
||||
"used_for.id": &id
|
||||
})
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user