mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fixed 导入失败的项目标记 project.status=0, 在列表中不显示
This commit is contained in:
@@ -22,6 +22,7 @@ class MigrateRemoteRepositoryJob < ApplicationJob
|
||||
gitea_result = $gitea_client.get_repos_by_owner_repo(repo&.project&.owner&.login, repo&.project&.identifier)
|
||||
if gitea_result["empty"]
|
||||
repo&.mirror&.failed!
|
||||
repo&.project&.update_columns(status: 0)
|
||||
else
|
||||
repo&.project&.update_columns(gpid: gitea_result["id"])
|
||||
repo&.mirror&.succeeded!
|
||||
|
||||
Reference in New Issue
Block a user