MCPcopy Create free account
hub / github.com/PostHog/duckgres / UpdateUser

Method UpdateUser

controlplane/admin/api_test.go:125–142  ·  view source on GitHub ↗
(orgID, username, passwordHash string, passthrough *bool, maxVCPUs *int)

Source from the content-addressed store, hash-verified

123 return true, nil
124}
125
126func (s *fakeAPIStore) seedTeam(team configstore.OrgTeam) {
127 if s.teams[team.OrgID] == nil {
128 s.teams[team.OrgID] = make(map[int64]*configstore.OrgTeam)
129 }
130 clone := team
131 s.teams[team.OrgID][team.TeamID] = &clone
132}
133
134func (s *fakeAPIStore) ListAllOrgTeams() ([]configstore.OrgTeam, error) {
135 var out []configstore.OrgTeam
136 for _, orgTeams := range s.teams {
137 for _, t := range orgTeams {
138 out = append(out, *t)
139 }
140 }
141 sort.Slice(out, func(i, j int) bool {
142 if out[i].OrgID != out[j].OrgID {
143 return out[i].OrgID < out[j].OrgID
144 }
145 return out[i].TeamID < out[j].TeamID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected