From cc5df266808361c1dd3a1d17cbba712826a93d7e Mon Sep 17 00:00:00 2001 From: JakobDev Date: Tue, 3 Oct 2023 12:30:41 +0200 Subject: Even more `db.DefaultContext` refactor (#27352) Part of #27065 --------- Co-authored-by: Lunny Xiao Co-authored-by: delvh --- routers/web/org/org.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/web/org/org.go') diff --git a/routers/web/org/org.go b/routers/web/org/org.go index f67e7edb4c..52f8df8a1c 100644 --- a/routers/web/org/org.go +++ b/routers/web/org/org.go @@ -58,7 +58,7 @@ func CreatePost(ctx *context.Context) { RepoAdminChangeTeamAccess: form.RepoAdminChangeTeamAccess, } - if err := organization.CreateOrganization(org, ctx.Doer); err != nil { + if err := organization.CreateOrganization(ctx, org, ctx.Doer); err != nil { ctx.Data["Err_OrgName"] = true switch { case user_model.IsErrUserAlreadyExist(err): -- cgit v1.2.3