From 7193323be9ed5ddf184f4684bc85812dc5eda09f Mon Sep 17 00:00:00 2001 From: yystopf Date: Mon, 1 Nov 2021 17:09:25 +0800 Subject: [PATCH] fix: field upper but --- app/helpers/repositories_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index fe5a636eb..cc50c8d66 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -36,7 +36,13 @@ module RepositoriesHelper end def render_cache_commit_author(author_json) - find_user_in_redis_cache(author_json['name'], author_json['email']) + Rails.logger.info author_json['Email'] + if author_json["name"].present? && author_json["email"].present? + return find_user_in_redis_cache(author_json['name'], author_json['email']) + end + if author_json["Name"].present? && author_json["Email"].present? + return find_user_in_redis_cache(author_json['Name'], author_json['Email']) + end end def readme_render_decode64_content(str, path)