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

This commit is contained in:
adroslice authored and GitHub committed 2022-10-02 15:52:39 -04:00
1 parent 274ecf4b20
commit 15206efc57
1 file changed
+1
@@ -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