fix: comment edit not updating original content (#5646)

This commit is contained in:
adroslice 2022-10-02 21:52:39 +02:00 committed by GitHub
parent 274ecf4b20
commit 15206efc57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,7 @@ module.exports = {
async update ({ id, content, user }) {
const renderedContent = DOMPurify.sanitize(mkdown.render(content))
await WIKI.models.comments.query().findById(id).patch({
content,
render: renderedContent
})
return renderedContent