diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-16 20:00:49 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-16 20:00:49 +0200 |
commit | 87f6a9c455726ad0cf502a316d98db8da1d1806a (patch) | |
tree | 988341499ba3704abd1df2fff28ad1e712e03632 /web/pw-server/src/routes/bots | |
parent | 03ca884c4049f289d9b7c4700a2142967772fb4d (diff) | |
download | planetwars.dev-87f6a9c455726ad0cf502a316d98db8da1d1806a.tar.xz planetwars.dev-87f6a9c455726ad0cf502a316d98db8da1d1806a.zip |
consume matches pagination api
Diffstat (limited to 'web/pw-server/src/routes/bots')
-rw-r--r-- | web/pw-server/src/routes/bots/[bot_name].svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/pw-server/src/routes/bots/[bot_name].svelte b/web/pw-server/src/routes/bots/[bot_name].svelte index cf8c42a..99278df 100644 --- a/web/pw-server/src/routes/bots/[bot_name].svelte +++ b/web/pw-server/src/routes/bots/[bot_name].svelte @@ -5,7 +5,7 @@ const apiClient = new ApiClient(fetch); try { - const [botData, matches] = await Promise.all([ + const [botData, matchesPage] = await Promise.all([ apiClient.get(`/api/bots/${params["bot_name"]}`), apiClient.get("/api/matches", { bot: params["bot_name"], count: "20" }), ]); @@ -19,7 +19,7 @@ bot, owner, versions, - matches, + matches: matchesPage["matches"], }, }; } catch (error) { |