- Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
Error deleting task:
Code Example:
async deleteTask(taskId: string) {
try {
const task = await this.findTaskById(taskId) as Task; // This function found the Task
if (task) {
await task.Delete(DeleteMode.SoftDelete, true);
return {id: taskId};
} else
// noinspection ExceptionCaughtLocallyJS
throw new InternalServerError(Task with id === ${taskId}is not found);
} catch (e) {
throw new InternalServerError(e);
}
}
Exception:
{
"message": "AffectedTaskOccurrences attribute is required for Task items.",
"InnerException": null,
"response": {
"errorDetails": {
"keys": [],
"keysToObjs": {},
"objects": {}
},
"errorProperties": [],
"result": 2,
"errorCode": 9,
"errorMessage": "AffectedTaskOccurrences attribute is required for Task items."
}
}