Skip to content

Commit 3af5ae7

Browse files
committed
try with less eslect
1 parent decaf7f commit 3af5ae7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

models/organization/org.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,7 @@ func (org *Organization) getUserTeams(ctx context.Context, userID int64, cols ..
656656
func (org *Organization) getUserTeamIDs(ctx context.Context, userID int64) ([]int64, error) {
657657
teamIDs := make([]int64, 0, org.NumTeams)
658658
return teamIDs, db.GetEngine(ctx).
659-
Table("team").
660-
Cols("team.id").
661-
Where(builder.In("team.id", userTeamIDbuilder(org.ID, userID))).
659+
Where(userTeamIDbuilder(org.ID, userID)).
662660
Find(&teamIDs)
663661
}
664662

0 commit comments

Comments
 (0)