gitlink-forgeplus/app/views/installations/show.json.jbuilder

14 lines
344 B
Ruby

json.partial! "commons/success"
json.extract! @install_bot, :id, :bot_id, :installer_id, :create_time, :update_time
json.bot_name @install_bot&.bot&.name
json.account do
user = User.find_by(id: @install_bot.installer_id)
if user.present?
json.partial! "api/v1/users/simple_user", locals: { user: user }
else
json.nil!
end
end