fix: change to another endpoint avoid timeout
This commit is contained in:
parent
c4457bbf6c
commit
3542d9f7fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue