debian-mirror-gitlab/app/graphql/mutations/timelogs/base.rb

19 lines
361 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# 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