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

Method UpdateTemplateScheduleByID

coderd/database/dbauthz/dbauthz.go:7277–7282  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateTemplateScheduleByIDParams)

Source from the content-addressed store, hash-verified

7275}
7276
7277func (q *querier) UpdateTemplateScheduleByID(ctx context.Context, arg database.UpdateTemplateScheduleByIDParams) error {
7278 fetch := func(ctx context.Context, arg database.UpdateTemplateScheduleByIDParams) (database.Template, error) {
7279 return q.db.GetTemplateByID(ctx, arg.ID)
7280 }
7281 return update(q.log, q.auth, fetch, q.db.UpdateTemplateScheduleByID)(ctx, arg)
7282}
7283
7284func (q *querier) UpdateTemplateVersionByID(ctx context.Context, arg database.UpdateTemplateVersionByIDParams) error {
7285 // An actor is allowed to update the template version if they are authorized to update the template.

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
GetTemplateByIDMethod · 0.65

Tested by

no test coverage detected