(ctx context.Context, presetID uuid.UUID)
| 3963 | } |
| 3964 | |
| 3965 | func (q *querier) GetPresetParametersByPresetID(ctx context.Context, presetID uuid.UUID) ([]database.TemplateVersionPresetParameter, error) { |
| 3966 | // An actor can read template version presets if they can read the related template version. |
| 3967 | _, err := q.GetPresetByID(ctx, presetID) |
| 3968 | if err != nil { |
| 3969 | return nil, err |
| 3970 | } |
| 3971 | |
| 3972 | return q.db.GetPresetParametersByPresetID(ctx, presetID) |
| 3973 | } |
| 3974 | |
| 3975 | func (q *querier) GetPresetParametersByTemplateVersionID(ctx context.Context, args uuid.UUID) ([]database.TemplateVersionPresetParameter, error) { |
| 3976 | // An actor can read template version presets if they can read the related template version. |
nothing calls this directly
no test coverage detected