mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-08 05:54:30 +08:00
Penultimate round of db.DefaultContext
refactor (#27414)
Part of #27065 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
cmd
models
actions
activities
asymkey
auth
issues
comment_code.godependency.godependency_test.goissue_label.goissue_label_test.goissue_lock.goissue_project.goissue_search.goissue_test.golabel_test.gomilestone_list.gomilestone_test.gopull.gopull_test.go
repo.gorepo
repo_test.gomodules
context
doctor
indexer
routers
api/v1
common
init.goprivate
web
admin
auth
explore
feed
org
repo
branch.gohttp.goissue.goissue_dependency.goissue_lock.gomilestone.goprojects.gopull.gorelease.gorender.goview.gowiki.go
shared/user
user
web.goservices
actions
agit
asymkey
auth
convert
issue
mailer
migrations
pull
repository
uinotification
user
templates
repo
branch
commit_page.tmplcommits_list.tmplcommits_list_small.tmpldiff
graph
header.tmplicon.tmplissue
view_list.tmplshared
user/dashboard
tests/integration
@ -62,7 +62,7 @@ func runListAuth(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
authSources, err := auth_model.Sources()
|
||||
authSources, err := auth_model.Sources(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -100,7 +100,7 @@ func runDeleteAuth(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
source, err := auth_model.GetSourceByID(c.Int64("id"))
|
||||
source, err := auth_model.GetSourceByID(ctx, c.Int64("id"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user