forked from Trustie/forgeplus
fixed 提交者匹配用户email
This commit is contained in:
parent
bdd9885a41
commit
3f1ffcdb34
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue