Skip to content

Commit

Permalink
impr: user data download times
Browse files Browse the repository at this point in the history
get user data no longer needs to be called by itself
it can again be called in parallel with config and preset
  • Loading branch information
Miodec committed Mar 15, 2024
1 parent ed9fff5 commit b4259b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/ts/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);
Expand Down

0 comments on commit b4259b7

Please sign in to comment.