镜像项目不同步commit log

This commit is contained in:
xxq250 2026-05-29 15:34:11 +08:00
parent 85f327b822
commit f2b722ec60
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class CommitLogsController < ApplicationController
project = Project.where(identifier: repository_name).where(user_id: owner&.id)&.first
project = Project.where(identifier: repository_name).where(gpid: repository_id)&.first if project.blank?
project.update_column(:updated_on, Time.now) if project.present?
render_ok if project.project_type == 'mirror'
render_ok if project.project_type == 'sync_mirror'
params[:commits].each do |commit|
commit_id = commit[:id]
message = commit[:message]