aboutsummaryrefslogtreecommitdiffstats
path: root/models/user/follow.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user/follow.go')
-rw-r--r--models/user/follow.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user/follow.go b/models/user/follow.go
index 5f24f706d1..a02ebdb8c2 100644
--- a/models/user/follow.go
+++ b/models/user/follow.go
@@ -33,7 +33,7 @@ func FollowUser(userID, followID int64) (err error) {
return nil
}
- ctx, committer, err := db.TxContext()
+ ctx, committer, err := db.TxContext(db.DefaultContext)
if err != nil {
return err
}
@@ -59,7 +59,7 @@ func UnfollowUser(userID, followID int64) (err error) {
return nil
}
- ctx, committer, err := db.TxContext()
+ ctx, committer, err := db.TxContext(db.DefaultContext)
if err != nil {
return err
}