Skip to content

Commit

Permalink
add message for server task and remove console.log line
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Apr 2, 2024
1 parent 5e7acac commit 1d2c13e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/core/ServerTasksTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,11 @@ function editServerTask(task: AutomatedTask) {
}
async function executeServerTask(task: AutomatedTask) {
console.log(tasks.value);
try {
const result = await runServerTask(task.id);
console.log(result);
await runServerTask(task.id);
notifySuccess(
"Server task sent successfully. Check script output after script execution.",
);
} catch (e) {
notifyError(`Unable to run task: ${e}`);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/modals/alerts/AlertTemplateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ async function onSubmit() {
template.resolved_action_env_vars = resolvedScriptDropdown.defaultEnvVars;
template.resolved_action_timeout = resolvedScriptDropdown.defaultTimeout;
console.log(template);
if (props.alertTemplate) {
try {
await saveAlertTemplate(template.id, template);
Expand Down

0 comments on commit 1d2c13e

Please sign in to comment.