From d5c1340555e4c9881c6cf7601e5a74b69704b594 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Fri, 16 Jun 2023 18:29:38 -0600 Subject: [PATCH] Update test page --- test-site/src/routes/+page.svelte | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test-site/src/routes/+page.svelte b/test-site/src/routes/+page.svelte index 39eb18e..08516a8 100644 --- a/test-site/src/routes/+page.svelte +++ b/test-site/src/routes/+page.svelte @@ -11,7 +11,7 @@ const client = createClient({ keepAlive: 10_000, }); -var game_id = null +var game_id = "5746b429-de0b-409b-b10f-e64bd2faa02c" console.log("STARTING_CLIENT") @@ -21,9 +21,7 @@ client.subscribe({ }, { next: (data) => { - let obj = JSON.parse(data.data) - game_id = obj.Arenas[0].Owner.ID - console.log(game_id) + console.log(data) }, error: (err) => { console.log(err) @@ -49,7 +47,7 @@ client.subscribe({ client.subscribe({ query: "subscription($arena_id:String) { Arena(arena_id:$arena_id) { Owner { Name }} }", variables: { - arena_id: "a3e8af0b-deb3-4543-b2f7-cc82d3326174" + arena_id: "bcd6c679-964f-4c4a-96e1-58e39032ded8" }, }, {