mirror of
https://github.com/go-gitea/gitea
synced 2025-02-07 15:24:45 +00:00
update join
This commit is contained in:
parent
401d2572f9
commit
d55e25ff4d
@ -177,7 +177,7 @@ func (opts *SearchBadgeOptions) ToOrders() string {
|
|||||||
func (opts *SearchBadgeOptions) ToJoins() []db.JoinFunc {
|
func (opts *SearchBadgeOptions) ToJoins() []db.JoinFunc {
|
||||||
return []db.JoinFunc{
|
return []db.JoinFunc{
|
||||||
func(e db.Engine) error {
|
func(e db.Engine) error {
|
||||||
e.Join("INNER", "badge", "badge.badge_id = badge.id")
|
e.Join("INNER", "badge", "`user_badge`.badge_id=badge.id")
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user