change project.id to project.gpid
This commit is contained in:
parent
8fe2589baa
commit
f59d3f5114
|
@ -90,7 +90,7 @@ module Mobile
|
|||
project = Project.find_by_user_id_name(owner.id, params[:reponame])
|
||||
if project
|
||||
g = Gitlab.client # 用于通过gitlab api进行查询
|
||||
diff_result = g.commit_diff(project.id, params[:oldHash])
|
||||
diff_result = g.commit_diff(project.gpid, params[:oldHash])
|
||||
{status:0, diff_result:diff_result}
|
||||
else
|
||||
Rails.logger.info "project not found"
|
||||
|
|
Loading…
Reference in New Issue