Skip to content
Snippets Groups Projects
Commit c669ff67 authored by Cam Saül's avatar Cam Saül
Browse files

Return hydrated Card info with PUT /api/card/:id :yum:

parent a4017657
No related branches found
No related tags found
No related merge requests found
......@@ -242,8 +242,11 @@
;; card was unarchived
(and (false? archived)
(:archived card)) :card-unarchive
:else :card-update)]
(events/publish-event! event (assoc (Card id) :actor_id *current-user-id*)))))
:else :card-update)
card (assoc (Card id) :actor_id *current-user-id*)]
(events/publish-event! event card)
;; include same information returned by GET /api/card/:id since frontend replaces the Card it currently has with returned one -- See #4142
(hydrate card :creator :dashboard_count :labels :can_write :collection))))
(defendpoint DELETE "/:id"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment