Commit 16ed545e authored by James Lopez's avatar James Lopez

fix utc error

parent df8dd6de
...@@ -12,6 +12,8 @@ module Gitlab ...@@ -12,6 +12,8 @@ module Gitlab
USER_REFERENCES = %w[author_id assignee_id updated_by_id user_id].freeze USER_REFERENCES = %w[author_id assignee_id updated_by_id user_id].freeze
BUILD_MODELS = %w[Ci::Build commit_status].freeze
def self.create(*args) def self.create(*args)
new(*args).create new(*args).create
end end
...@@ -70,7 +72,7 @@ module Gitlab ...@@ -70,7 +72,7 @@ module Gitlab
end end
def generate_imported_object def generate_imported_object
if @relation_sym == 'commit_status' # call #trace= method after assigning the other attributes if BUILD_MODELS.include?(@relation_name) # call #trace= method after assigning the other attributes
trace = @relation_hash.delete('trace') trace = @relation_hash.delete('trace')
imported_object do |object| imported_object do |object|
object.trace = trace object.trace = trace
......
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