Commit a8682582 authored by James Lopez's avatar James Lopez

update json and fix notes issue

parent 25a1c654
...@@ -28,12 +28,12 @@ module Gitlab ...@@ -28,12 +28,12 @@ module Gitlab
end end
def update_missing_author(relation_hash, members_map) def update_missing_author(relation_hash, members_map)
old_author_id = relation_hash['author_id'].dup old_author_id = relation_hash['author_id']
relation_hash['author_id'] = members_map.map[old_author_id] relation_hash['author_id'] = members_map.map[old_author_id]
return unless members_map.note_member_list.include?(old_author_id) return unless members_map.note_member_list.include?(old_author_id)
relation_hash['note'] = ('*Blank note*') if relation_hash['note'].blank? relation_hash['note'] = ('*Blank note*') if relation_hash['note'].blank?
relation_hash['note'].join(missing_author_note(relation_hash['updated_at'], relation_hash['note'] += (missing_author_note(relation_hash['updated_at'],
relation_hash['author']['name'])) relation_hash['author']['name']))
relation_hash.delete('author') relation_hash.delete('author')
end end
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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