API: restore broken merge request commenting
This commit is contained in:
parent
c946bf886c
commit
961cb285b0
|
@ -75,5 +75,10 @@ module Gitlab
|
||||||
expose :author, using: Entities::UserBasic
|
expose :author, using: Entities::UserBasic
|
||||||
expose :updated_at, :created_at
|
expose :updated_at, :created_at
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class MRNote < Grape::Entity
|
||||||
|
expose :note
|
||||||
|
expose :author, using: Entities::UserBasic
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -107,7 +107,7 @@ module Gitlab
|
||||||
note.author = current_user
|
note.author = current_user
|
||||||
|
|
||||||
if note.save
|
if note.save
|
||||||
present note, with: Entities::Note
|
present note, with: Entities::MRNote
|
||||||
else
|
else
|
||||||
not_found!
|
not_found!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue