fix blank state error

This commit is contained in:
James Lopez 2016-11-17 20:54:02 +01:00
parent 98773ef974
commit 24c2aa39ad
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Gitlab
end
def fetch
update_author! if event_result.first['author_id']
update_author!
event_result.map do |event|
serialize(event) if has_permission?(event['id'])
@ -28,6 +28,8 @@ module Gitlab
private
def update_author!
return unless event_result.any? && event_result.first['author_id']
AuthorUpdater.update!(event_result)
end