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

Method UpdateOrganization

coderd/database/dbauthz/dbauthz.go:7010–7015  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateOrganizationParams)

Source from the content-addressed store, hash-verified

7008}
7009
7010func (q *querier) UpdateOrganization(ctx context.Context, arg database.UpdateOrganizationParams) (database.Organization, error) {
7011 fetch := func(ctx context.Context, arg database.UpdateOrganizationParams) (database.Organization, error) {
7012 return q.db.GetOrganizationByID(ctx, arg.ID)
7013 }
7014 return updateWithReturn(q.log, q.auth, fetch, q.db.UpdateOrganization)(ctx, arg)
7015}
7016
7017func (q *querier) UpdateOrganizationDeletedByID(ctx context.Context, arg database.UpdateOrganizationDeletedByIDParams) error {
7018 deleteF := func(ctx context.Context, id uuid.UUID) error {

Callers

nothing calls this directly

Calls 2

updateWithReturnFunction · 0.85
GetOrganizationByIDMethod · 0.65

Tested by

no test coverage detected