mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-06 05:38:27 -06:00
server-ts: Fix undefined in task_context
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user