diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-21 23:41:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 23:41:00 +0800 |
commit | d710af6669654f27f02b69d7ef1ba563e7d58a90 (patch) | |
tree | 9727f468a570106293dc90beb70035180bbb7e8e /models/issue_dependency.go | |
parent | 0add627182388ac63fd04b94cdf912fb87fd0326 (diff) | |
download | gitea-d710af6669654f27f02b69d7ef1ba563e7d58a90.tar.gz gitea-d710af6669654f27f02b69d7ef1ba563e7d58a90.zip |
Remove NewSession method from db.Engine interface (#17577)
* Remove NewSession method from db.Engine interface
* Fix bug
* Some improvements
* Fix bug
* Fix test
* Use XXXBean instead of XXXExample
Diffstat (limited to 'models/issue_dependency.go')
-rw-r--r-- | models/issue_dependency.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_dependency.go b/models/issue_dependency.go index ee984fbe3e..ab81ef0c68 100644 --- a/models/issue_dependency.go +++ b/models/issue_dependency.go @@ -61,7 +61,7 @@ func CreateIssueDependency(user *User, issue, dep *Issue) error { return ErrCircularDependency{issue.ID, dep.ID} } - if _, err := sess.Insert(&IssueDependency{ + if err := db.Insert(ctx, &IssueDependency{ UserID: user.ID, IssueID: issue.ID, DependencyID: dep.ID, |