Skip to content

Commit

Permalink
fix sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 committed Apr 20, 2023
1 parent 448d141 commit 862c853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo/repo_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func UserUnitAccessRepoCond(idStr string, userID int64, unitType unit.Type) buil
return builder.In(idStr, builder.Select("`access`.repo_id").
From("`access`").
Join("INNER", "repository", "`repository`.id = `access`.repo_id").
Join("INNER", "user", "`user`.id = `repository`.owner_id").
Join("INNER", "`user`", "`user`.id = `repository`.owner_id").
Where(
builder.And(
builder.Eq{"`access`.user_id": userID},
Expand Down

0 comments on commit 862c853

Please sign in to comment.