fix escaping in id queries

This commit is contained in:
Elio Bischof 2022-07-20 12:09:10 +02:00
parent 246f95ea4e
commit 6e608030f7
No known key found for this signature in database
GPG Key ID: 7B383FDE4DDBF1BD

View File

@ -15,12 +15,12 @@ func ids(cfg *E2EConfig, dbClient *sql.DB) (string, string, error) {
return zitadelProjectResourceID, instanceID, nil 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 { if err != nil {
return "", "", err 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 return instanceID, zitadelProjectResourceID, err
} }