fixes to delete notifications

This commit is contained in:
zadam
2019-10-19 00:11:07 +02:00
parent 9f4ca279aa
commit 82bbf4173b
8 changed files with 50 additions and 15 deletions

View File

@@ -40,7 +40,6 @@ class TaskContext {
}
}
// must remaing non-static
async reportError(message) {
await ws.sendMessageToAllClients({
type: 'task-error',
@@ -50,14 +49,12 @@ class TaskContext {
});
}
// must remaing non-static
async taskSucceeded(parentNoteId, importedNoteId) {
async taskSucceeded(result) {
await ws.sendMessageToAllClients({
type: 'task-succeeded',
taskId: this.taskId,
taskType: this.taskType,
parentNoteId: parentNoteId,
importedNoteId: importedNoteId
result: result
});
}
}