feat(Microsoft To Do Node): Add an option to set a reminder when updating a task (#6918)

Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
Alberto Pasqualetto
2024-04-25 15:58:27 +02:00
committed by GitHub
parent 42a9891081
commit 22b2afdd23
2 changed files with 17 additions and 0 deletions

View File

@@ -311,6 +311,16 @@ export class MicrosoftToDo implements INodeType {
};
}
if (body.reminderDateTime) {
body.reminderDateTime = {
dateTime: moment.tz(body.reminderDateTime, timezone).format(),
timeZone: timezone,
};
body.isReminderOn = true;
} else {
body.isReminderOn = false;
}
responseData = await microsoftApiRequest.call(
this,
'PATCH',