Browse Source

FIX bug

tags/v1
Jasder 6 years ago
parent
commit
391b77b23c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/projects/branches.json.jbuilder

+ 1
- 1
app/views/projects/branches.json.jbuilder View File

@@ -13,7 +13,7 @@ json.array! @branches do |branch|
json.time_from_now time_from_now(branch['commit']['timestamp'])
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
if user
json.login user.login


Loading…
Cancel
Save