debian-mirror-gitlab/app/graphql/mutations/timelogs/base.rb
2022-08-27 11:52:29 +05:30

18 lines
361 B
Ruby

# frozen_string_literal: true
module Mutations
module Timelogs
class Base < Mutations::BaseMutation
field :timelog,
Types::TimelogType,
null: true,
description: 'Timelog.'
private
def response(result)
{ timelog: result.payload[:timelog], errors: result.errors }
end
end
end
end