From b4259b7b4db0316c07ca3c16f36b1a4b8797a132 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 14 Mar 2024 23:28:29 +0100 Subject: [PATCH] impr: user data download times get user data no longer needs to be called by itself it can again be called in parallel with config and preset --- frontend/src/ts/db.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/ts/db.ts b/frontend/src/ts/db.ts index 9982dd8105b9..6139b6316991 100644 --- a/frontend/src/ts/db.ts +++ b/frontend/src/ts/db.ts @@ -53,10 +53,8 @@ export async function initSnapshot(): Promise< // } // LoadingPage.updateText("Downloading user..."); - //getData recreates the user if it doesnt exist - thats why it needs to be called first, by itself - const userResponse = await Ape.users.getData(); - - const [configResponse, presetsResponse] = await Promise.all([ + const [userResponse, configResponse, presetsResponse] = await Promise.all([ + Ape.users.getData(), Ape.configs.get(), Ape.presets.get(), ]);