chore: commit pending gateway changes
This commit is contained in:
@@ -159,6 +159,13 @@ RETURNING `+pricingRuleSetColumns,
|
||||
}
|
||||
|
||||
func (s *Store) DeletePricingRuleSet(ctx context.Context, id string) error {
|
||||
var ruleSetKey string
|
||||
if err := s.pool.QueryRow(ctx, `SELECT rule_set_key FROM model_pricing_rule_sets WHERE id = $1::uuid`, id).Scan(&ruleSetKey); err != nil {
|
||||
return err
|
||||
}
|
||||
if ruleSetKey == "default-multimodal-v1" {
|
||||
return ErrProtectedDefault
|
||||
}
|
||||
result, err := s.pool.Exec(ctx, `DELETE FROM model_pricing_rule_sets WHERE id = $1::uuid`, id)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user