MCPcopy Index your code
hub / github.com/coder/coder / UpdateGroupByID

Method UpdateGroupByID

coderd/database/dbauthz/dbauthz.go:6915–6920  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateGroupByIDParams)

Source from the content-addressed store, hash-verified

6913}
6914
6915func (q *querier) UpdateGroupByID(ctx context.Context, arg database.UpdateGroupByIDParams) (database.Group, error) {
6916 fetch := func(ctx context.Context, arg database.UpdateGroupByIDParams) (database.Group, error) {
6917 return q.db.GetGroupByID(ctx, arg.ID)
6918 }
6919 return updateWithReturn(q.log, q.auth, fetch, q.db.UpdateGroupByID)(ctx, arg)
6920}
6921
6922func (q *querier) UpdateInactiveUsersToDormant(ctx context.Context, lastSeenAfter database.UpdateInactiveUsersToDormantParams) ([]database.UpdateInactiveUsersToDormantRow, error) {
6923 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

updateWithReturnFunction · 0.85
GetGroupByIDMethod · 0.65

Tested by

no test coverage detected