server-ts: Fix undefined in task_context

This commit is contained in:
Elian Doran
2024-03-17 21:37:40 +02:00
parent 9f6a8dc75c
commit 040ed39a4e
2 changed files with 6 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ class TaskContext {
type: 'taskProgressCount',
taskId: this.taskId,
taskType: this.taskType,
data: this.data || undefined,
data: this.data,
progressCount: this.progressCount
});
}
@@ -60,7 +60,7 @@ class TaskContext {
type: 'taskError',
taskId: this.taskId,
taskType: this.taskType,
data: this.data || undefined,
data: this.data,
message: message
});
}
@@ -70,7 +70,7 @@ class TaskContext {
type: 'taskSucceeded',
taskId: this.taskId,
taskType: this.taskType,
data: this.data || undefined,
data: this.data,
result: result
});
}