Skip to content

Commit

Permalink
Merge branch 'main' into fix-500err-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jan 14, 2025
2 parents 5801583 + 4672ddc commit a7af110
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/repo/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a7af110

Please sign in to comment.