Next round of db.DefaultContext refactor (#27089)

Part of #27065
This commit is contained in:
JakobDev authored and GitHub committed 2023-09-16 14:39:12 +00:00
1 parent a1b2a11812
commit f91dbbba98
90 files changed
+434 -464

No files matched your search

+1 -1
View File
@@ -540,7 +540,7 @@ func SyncPullMirror(ctx context.Context, repoID int64) bool {
return false
}
if err = repo_model.UpdateRepositoryUpdatedTime(m.RepoID, commitDate); err != nil {
if err = repo_model.UpdateRepositoryUpdatedTime(ctx, m.RepoID, commitDate); err != nil {
log.Error("SyncMirrors [repo: %-v]: unable to update repository 'updated_unix': %v", m.Repo, err)
return false
}