FIX bug
This commit is contained in:
parent
172c6da443
commit
391b77b23c
|
@ -13,7 +13,7 @@ json.array! @branches do |branch|
|
||||||
json.time_from_now time_from_now(branch['commit']['timestamp'])
|
json.time_from_now time_from_now(branch['commit']['timestamp'])
|
||||||
end
|
end
|
||||||
|
|
||||||
user = find_user_by_login_or_mail(branch['commit']['author']['username'])
|
user = find_user_by_login_or_mail(branch['commit']['author']['name'])
|
||||||
json.author do
|
json.author do
|
||||||
if user
|
if user
|
||||||
json.login user.login
|
json.login user.login
|
||||||
|
|
Loading…
Reference in New Issue