diff --git a/cmd/migrate/go.mod b/cmd/migrate/go.mod index 5e4c030..9481289 100644 --- a/cmd/migrate/go.mod +++ b/cmd/migrate/go.mod @@ -2,8 +2,6 @@ module isp-config-service/migrate go 1.24 -toolchain go1.24.1 - replace isp-config-service => ../.. require ( diff --git a/controller/api/variable.go b/controller/api/variable.go index f32c610..6f608ad 100644 --- a/controller/api/variable.go +++ b/controller/api/variable.go @@ -139,7 +139,7 @@ func (c Variable) Upsert(ctx context.Context, req []domain.UpsertVariableRequest func (c Variable) Delete(ctx context.Context, req domain.VariableByNameRequest) error { err := c.service.Delete(ctx, req.Name) switch { - case errors.Is(err, entity.ErrConfigNotFound): + case errors.Is(err, entity.ErrVariableNotFound): return apierrors.NewBusinessError(domain.ErrorCodeVariableNotFound, "variable by name not found", err) case errors.Is(err, entity.ErrVariableUsedInConfigs): return apierrors.NewBusinessError(domain.ErrorCodeVariableUsedInConfigs, "variable used in configs", err)