fix: change to another endpoint avoid timeout

This commit is contained in:
Methapon2001 2024-07-11 14:51:53 +07:00
parent c4457bbf6c
commit 3542d9f7fd

View file

@ -129,7 +129,7 @@ export class BackupController extends Controller {
@Post("restore")
async restoreBackup(@Body() body: { filename: string }) {
return await fetch(
`${WINDMILL_URL}/api/w/${WINDMILL_WORKSPACE}/jobs/run_wait_result/p/${WINDMILL_RESTORE_SCRIPT_PATH}`,
`${WINDMILL_URL}/api/w/${WINDMILL_WORKSPACE}/jobs/run/p/${WINDMILL_RESTORE_SCRIPT_PATH}`,
{
method: "POST",
headers: {