mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Remove db.DefaultContext in routers/ and cmd/ (#26076)
				
					
				
			Now, the only remaining usages of `models.db.DefaultContext` are in - `modules` - `models` - `services`
This commit is contained in:
		| @@ -114,7 +114,7 @@ func SearchPackages(ctx *context.Context) { | ||||
| // EnumeratePackages lists all package names | ||||
| // https://packagist.org/apidoc#list-packages | ||||
| func EnumeratePackages(ctx *context.Context) { | ||||
| 	ps, err := packages_model.GetPackagesByType(db.DefaultContext, ctx.Package.Owner.ID, packages_model.TypeComposer) | ||||
| 	ps, err := packages_model.GetPackagesByType(ctx, ctx.Package.Owner.ID, packages_model.TypeComposer) | ||||
| 	if err != nil { | ||||
| 		apiError(ctx, http.StatusInternalServerError, err) | ||||
| 		return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user