Support deletion of quiz when the Note deletion is related
This commit is contained in:
parent
ab39f741f3
commit
c6dd391bbf
|
@ -53,6 +53,9 @@ module.exports = {
|
|||
const note = await db.getAPObject(msg.object.id, 'Note')
|
||||
if (note !== null)
|
||||
await db.table.objects().deleteOne({ _id: note._id })
|
||||
|
||||
if (typeof msg.object.id === 'string')
|
||||
await db.table.quizs().deleteOne({ replyTo: msg.object.id })
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue