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

Method FindMatchingPresetID

coderd/database/dbauthz/dbauthz.go:2528–2534  ·  view source on GitHub ↗
(ctx context.Context, arg database.FindMatchingPresetIDParams)

Source from the content-addressed store, hash-verified

2526}
2527
2528func (q *querier) FindMatchingPresetID(ctx context.Context, arg database.FindMatchingPresetIDParams) (uuid.UUID, error) {
2529 _, err := q.GetTemplateVersionByID(ctx, arg.TemplateVersionID)
2530 if err != nil {
2531 return uuid.Nil, err
2532 }
2533 return q.db.FindMatchingPresetID(ctx, arg)
2534}
2535
2536func (q *querier) GetAIBridgeInterceptionByID(ctx context.Context, id uuid.UUID) (database.AIBridgeInterception, error) {
2537 return fetch(q.log, q.auth, q.db.GetAIBridgeInterceptionByID)(ctx, id)

Callers

nothing calls this directly

Calls 2

FindMatchingPresetIDMethod · 0.65

Tested by

no test coverage detected