🐛 Fixes problems with comments section

This commit is contained in:
alonso.torres 2021-03-10 11:48:09 +01:00
parent 172372d4c0
commit c12cbbca2e
4 changed files with 15 additions and 12 deletions

View file

@ -146,14 +146,14 @@
(db/with-atomic [conn pool]
(let [thread (db/get-by-id conn :comment-thread id {:for-update true})]
(when-not thread
(ex/raise :type :not-found)
(ex/raise :type :not-found))
(files/check-read-permissions! conn profile-id (:file-id thread))
(db/update! conn :comment-thread
{:is-resolved is-resolved}
{:id id})
nil))))
nil)))
;; --- Mutation: Add Comment