Show More
@@ -698,7 +698,7 b' def create_repo(' | |||||
698 | 'repo_copy_permissions': schema_data['repo_copy_permissions'], |
|
698 | 'repo_copy_permissions': schema_data['repo_copy_permissions'], | |
699 | } |
|
699 | } | |
700 |
|
700 | |||
701 | task = RepoModel().create(form_data=data, cur_user=owner) |
|
701 | task = RepoModel().create(form_data=data, cur_user=owner.user_id) | |
702 | task_id = get_task_id(task) |
|
702 | task_id = get_task_id(task) | |
703 | # no commit, it's done in RepoModel, or async via celery |
|
703 | # no commit, it's done in RepoModel, or async via celery | |
704 | return { |
|
704 | return { | |
@@ -1096,7 +1096,7 b' def fork_repo(request, apiuser, repoid, ' | |||||
1096 | 'landing_rev': schema_data['repo_landing_commit_ref'], |
|
1096 | 'landing_rev': schema_data['repo_landing_commit_ref'], | |
1097 | } |
|
1097 | } | |
1098 |
|
1098 | |||
1099 | task = RepoModel().create_fork(data, cur_user=owner) |
|
1099 | task = RepoModel().create_fork(data, cur_user=owner.user_id) | |
1100 | # no commit, it's done in RepoModel, or async via celery |
|
1100 | # no commit, it's done in RepoModel, or async via celery | |
1101 | task_id = get_task_id(task) |
|
1101 | task_id = get_task_id(task) | |
1102 |
|
1102 |
General Comments 0
You need to be logged in to leave comments.
Login now