We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63222f4 commit 2bdf25cCopy full SHA for 2bdf25c
1 file changed
front/js/common.js
@@ -1586,12 +1586,16 @@ function restartBackend() {
1586
1587
modalEventStatusId = 'modal-message-front-event'
1588
1589
+ const apiToken = getSetting("API_TOKEN");
1590
+ const apiBaseUrl = getApiBase();
1591
+ const url = `${apiBaseUrl}/logs/add-to-execution-queue`;
1592
+
1593
// Execute
1594
$.ajax({
1595
method: "POST",
- url: "/logs/add-to-execution-queue",
1596
+ url: url,
1597
headers: {
- "Authorization": "Bearer " + getSetting("API_TOKEN"),
1598
+ "Authorization": "Bearer " + apiToken,
1599
"Content-Type": "application/json"
1600
},
1601
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
0 commit comments