You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are certain scenarios where the account number isn't set in the
identity header. For instance when using service accounts and working
via the api, the account number will be empty. Deleting the same
blueprint via the UI will fail because there the account number will be
set.
Copy file name to clipboardExpand all lines: internal/db/db_blueprints.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ const (
95
95
WHERE composes.blueprint_version_id = blueprint_versions.id
96
96
AND composes.org_id=$1 AND blueprint_versions.blueprint_id=$2`
97
97
98
-
sqlDeleteBlueprint=`UPDATE blueprints SET deleted = TRUE, name = id WHERE deleted = FALSE AND id = $1 AND org_id = $2 AND account_number = $3`
98
+
sqlDeleteBlueprint=`UPDATE blueprints SET deleted = TRUE, name = id WHERE deleted = FALSE AND id = $1 AND org_id = $2`
99
99
100
100
sqlGetBlueprints=`
101
101
SELECT blueprints.id, blueprints.name, blueprints.description, MAX(blueprint_versions.version) as version, MAX(blueprint_versions.created_at) as last_modified_at
0 commit comments