mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 09:33:39 +00:00
fix escaping in id queries
This commit is contained in:
parent
246f95ea4e
commit
6e608030f7
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user