fixed 提交者匹配用户email

This commit is contained in:
xxq250 2023-05-17 21:31:32 +08:00
parent bdd9885a41
commit 3f1ffcdb34
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ module RepositoriesHelper
if author_json["Name"].present? && author_json["Email"].present?
user = find_user_in_redis_cache(author_json['Name'], author_json['Email'])
end
if user.blank? && author_json["email"].present?
user = User.find_by(mail: author_json["email"])
end
if user.blank? && author_json["Email"].present?
user = User.find_by(mail: author_json["Email"])
end