fixed 发行版git删除时,不同步处理log

This commit is contained in:
“xxq250” 2022-08-16 11:50:09 +08:00
parent c6034ed33f
commit 0c10f3ff10
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class VersionRelease < ApplicationRecord
def update_sha
git_release = Gitea::Versions::GetService.call(user.gitea_token, repository&.owner&.login, repository&.identifier, version_gid)
puts "git_release======#{git_release}"
Rails.logger.info "git_release======#{git_release}"
self.update(sha: git_release["sha"]) if git_release.present? && git_release["status"].to_s != "-1"
end
end