mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 18:57:34 +02:00
Package registry changes (#19305)
* removed debug logs * fixed SELECT * removed unneeded error type * use common SearchVersions method * remove empty container upload versions * return err
This commit is contained in:
1 parent
8ddcd37f13
commit
5e242e021b
17 files changed
+185
-150
No files matched your search
@@ -67,7 +67,7 @@ func FindExpiredUnreferencedBlobs(ctx context.Context, olderThan time.Duration)
|
||||
pbs := make([]*PackageBlob, 0, 10)
|
||||
return pbs, db.GetEngine(ctx).
|
||||
Table("package_blob").
|
||||
Join("LEFT OUTER", "package_file", "package_file.blob_id = package_blob.id").
|
||||
Join("LEFT", "package_file", "package_file.blob_id = package_blob.id").
|
||||
Where("package_file.id IS NULL AND package_blob.created_unix < ?", time.Now().Add(-olderThan).Unix()).
|
||||
Find(&pbs)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user