Skip to content

Commit efcb63d

Browse files
committed
Revert "try with less eslect"
This reverts commit 3af5ae7. because of error: "Unsupported condition type"
1 parent 6a26382 commit efcb63d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/organization/org.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ 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-
Where(getUserTeamIDsQueryBuilder(org.ID, userID)).
659+
Table("team").
660+
Cols("team.id").
661+
Where(builder.In("team.id", getUserTeamIDsQueryBuilder(org.ID, userID))).
660662
Find(&teamIDs)
661663
}
662664

0 commit comments

Comments
 (0)