aboutsummaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go
index 5f0e678ab4..119465b962 100644
--- a/models/org.go
+++ b/models/org.go
@@ -97,8 +97,8 @@ func removeOrgUser(ctx context.Context, orgID, userID int64) error {
}
// RemoveOrgUser removes user from given organization.
-func RemoveOrgUser(orgID, userID int64) error {
- ctx, committer, err := db.TxContext(db.DefaultContext)
+func RemoveOrgUser(ctx context.Context, orgID, userID int64) error {
+ ctx, committer, err := db.TxContext(ctx)
if err != nil {
return err
}