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

Method UpsertLastUpdateCheck

coderd/database/dbauthz/dbauthz.go:8208–8213  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

8206}
8207
8208func (q *querier) UpsertLastUpdateCheck(ctx context.Context, value string) error {
8209 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
8210 return err
8211 }
8212 return q.db.UpsertLastUpdateCheck(ctx, value)
8213}
8214
8215func (q *querier) UpsertLogoURL(ctx context.Context, value string) error {
8216 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpsertLastUpdateCheckMethod · 0.65

Tested by

no test coverage detected