Fix missing license when sync mirror (#33255)

Fix #33222
This commit is contained in:
yp05327 2025-01-14 14:44:12 +09:00 committed by GitHub
parent a98a836e76
commit 4672ddcdd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,7 @@ func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string,
for _, o := range oldLicenses {
// Update already existing license
if o.License == license {
o.CommitID = commitID
if _, err := db.GetEngine(ctx).ID(o.ID).Cols("`commit_id`").Update(o); err != nil {
return err
}