Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
SimpleOrg -> MinimalOrg
  • Loading branch information
6543 authored Jun 14, 2021
commit d7f2e216b96e0fe6ea46e6d05459f7d875ca66c2
6 changes: 3 additions & 3 deletions models/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,11 @@ func queryUserOrgIDs(uid int64) *builder.Builder {
Where(builder.Eq{"team_user.uid": uid})
}

// SimpleOrg represents a simple orgnization with only needed columns
type SimpleOrg = User
// MinimalOrg represents a simple orgnization with only needed columns
type MinimalOrg = User

// GetUserOrgsList returns one user's all orgs list
func GetUserOrgsList(uid int64) ([]*SimpleOrg, error) {
func GetUserOrgsList(uid int64) ([]*MinimalOrg, error) {
var orgs = make([]*SimpleOrg, 0, 20)
return orgs, x.Select("id, name, full_name, visibility, avatar, avatar_email, use_custom_avatar").
Table("user").
Expand Down