From 1ed5a81fe3aab7d0b1b5b957b28fa4d7537b26f5 Mon Sep 17 00:00:00 2001 From: Bryttanie House Date: Fri, 25 Oct 2024 10:54:29 -0400 Subject: [PATCH] Fixes 4897: rhsm_environment_created reset after updating template --- pkg/dao/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dao/templates.go b/pkg/dao/templates.go index 14533b692..01145f4ce 100644 --- a/pkg/dao/templates.go +++ b/pkg/dao/templates.go @@ -479,7 +479,7 @@ func (t templateDaoImpl) SetEnvironmentCreated(ctx context.Context, templateUUID result := t.db.WithContext(ctx).Exec(` UPDATE templates SET rhsm_environment_created = true - AND uuid = ?`, + WHERE uuid = ?`, templateUUID, )