mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 06:56:38 +02:00
🐛 Fixes problems with comments section
This commit is contained in:
parent
172372d4c0
commit
c12cbbca2e
4 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue