1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-31 03:54:28 +00:00

update join

This commit is contained in:
techknowlogick 2024-10-08 12:26:39 -04:00 committed by GitHub
parent 401d2572f9
commit d55e25ff4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,7 +177,7 @@ func (opts *SearchBadgeOptions) ToOrders() string {
func (opts *SearchBadgeOptions) ToJoins() []db.JoinFunc {
return []db.JoinFunc{
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
},
}