Unverified Commit 15206efc authored by adroslice's avatar adroslice Committed by GitHub

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

parent 274ecf4b
...@@ -126,6 +126,7 @@ module.exports = { ...@@ -126,6 +126,7 @@ module.exports = {
async update ({ id, content, user }) { async update ({ id, content, user }) {
const renderedContent = DOMPurify.sanitize(mkdown.render(content)) const renderedContent = DOMPurify.sanitize(mkdown.render(content))
await WIKI.models.comments.query().findById(id).patch({ await WIKI.models.comments.query().findById(id).patch({
content,
render: renderedContent render: renderedContent
}) })
return renderedContent return renderedContent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment