Commit 961cb285 authored by Nihad Abbasov's avatar Nihad Abbasov

API: restore broken merge request commenting

parent c946bf88
......@@ -75,5 +75,10 @@ module Gitlab
expose :author, using: Entities::UserBasic
expose :updated_at, :created_at
end
class MRNote < Grape::Entity
expose :note
expose :author, using: Entities::UserBasic
end
end
end
......@@ -107,7 +107,7 @@ module Gitlab
note.author = current_user
if note.save
present note, with: Entities::Note
present note, with: Entities::MRNote
else
not_found!
end
......
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