mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 06:38:32 -04: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:
parent
8ddcd37f13
commit
5e242e021b
17 changed files with 185 additions and 150 deletions
|
@ -74,8 +74,8 @@ func SearchRecipes(ctx context.Context, opts *RecipeSearchOptions) ([]string, er
|
|||
query := builder.
|
||||
Select("package.name, package_version.version, package_file.id").
|
||||
From("package_file").
|
||||
Join("INNER", "package_version", "package_version.id = package_file.version_id").
|
||||
Join("INNER", "package", "package.id = package_version.package_id").
|
||||
InnerJoin("package_version", "package_version.id = package_file.version_id").
|
||||
InnerJoin("package", "package.id = package_version.package_id").
|
||||
Where(cond)
|
||||
|
||||
results := make([]struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue