diff --git a/ee/api/chalicelib/core/signup.py b/ee/api/chalicelib/core/signup.py index 949f0f2ec..5e06ae224 100644 --- a/ee/api/chalicelib/core/signup.py +++ b/ee/api/chalicelib/core/signup.py @@ -83,8 +83,9 @@ def create_tenant(data: schemas.UserSignupSchema): with pg_client.PostgresClient() as cur: cur.execute(cur.mogrify(query, params)) + t = cur.fetchone() - telemetry.new_client(tenant_id=data["tenant_id"]) + telemetry.new_client(tenant_id=t["tenant_id"]) r = users.authenticate(email, password) r["smtp"] = smtp.has_smtp()