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

Method UpdateAPIKeyByID

coderd/database/dbauthz/dbauthz.go:6566–6571  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateAPIKeyByIDParams)

Source from the content-addressed store, hash-verified

6564}
6565
6566func (q *querier) UpdateAPIKeyByID(ctx context.Context, arg database.UpdateAPIKeyByIDParams) error {
6567 fetch := func(ctx context.Context, arg database.UpdateAPIKeyByIDParams) (database.APIKey, error) {
6568 return q.db.GetAPIKeyByID(ctx, arg.ID)
6569 }
6570 return update(q.log, q.auth, fetch, q.db.UpdateAPIKeyByID)(ctx, arg)
6571}
6572
6573func (q *querier) UpdateChatACLByID(ctx context.Context, arg database.UpdateChatACLByIDParams) error {
6574 if rbac.ChatACLDisabled() {

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
GetAPIKeyByIDMethod · 0.65

Tested by

no test coverage detected