Skip to content

Commit

Permalink
Rename db url
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Nov 27, 2024
1 parent f1556b5 commit 2a37c9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions js/modules/GlpiInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,5 @@ export async function start_database_install(dom_element, progress_key)
progress.start();
}, 1500);

try {
await fetch("/install/database_setup/start_db_inserts", {method: 'POST'});
} catch (err) {
} finally {
}
await fetch("/install/init_database", {method: 'POST'});
}
2 changes: 1 addition & 1 deletion js/modules/ProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class ProgressBar
}

if (res.status >= 400) {
throw new Error('Error response from server with code "' + res.status.toString() + '".');
throw new Error(`Error response from server with code "${res.status.toString()}".`);
}

const json = await res.json();
Expand Down
2 changes: 1 addition & 1 deletion src/Glpi/Controller/Install/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
) {
}

#[Route("/install/database_setup/start_db_inserts", methods: 'POST')]
#[Route("/install/init_database", methods: 'POST')]
#[SecurityStrategy(Firewall::STRATEGY_NO_CHECK)]
public function start_inserts(): Response
{
Expand Down

0 comments on commit 2a37c9a

Please sign in to comment.