From 6e608030f7267c5969ad4344642af952ebfdbab4 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 20 Jul 2022 12:09:10 +0200 Subject: [PATCH] fix escaping in id queries --- cmd/e2e-setup/ids.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/e2e-setup/ids.go b/cmd/e2e-setup/ids.go index 10b1115ce7..3944fc640d 100644 --- a/cmd/e2e-setup/ids.go +++ b/cmd/e2e-setup/ids.go @@ -15,12 +15,12 @@ func ids(cfg *E2EConfig, dbClient *sql.DB) (string, string, error) { return zitadelProjectResourceID, instanceID, nil } - zitadelProjectResourceID, err := querySingleString(dbClient, `select aggregate_id from eventstore.events where event_type = 'project.added' and event_data = '{\"name\": \"ZITADEL\"}'`) + zitadelProjectResourceID, err := querySingleString(dbClient, `select aggregate_id from eventstore.events where event_type = 'project.added' and event_data = '{"name": "ZITADEL"}'`) if err != nil { return "", "", err } - instanceID, err = querySingleString(dbClient, `select aggregate_id from eventstore.events where event_type = 'instance.added' and event_data = '{\"name\": \"Localhost\"}'`) + instanceID, err = querySingleString(dbClient, `select aggregate_id from eventstore.events where event_type = 'instance.added' and event_data = '{"name": "Localhost"}'`) return instanceID, zitadelProjectResourceID, err }