Set required attribute when using Todoist Sync API reminder_add command (#122644)

* Set type=absolute when using Todoist Sync API reminder_add command.

This argument is required:

ref.: https://developer.todoist.com/sync/v8/#add-a-reminder

* Fix

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Janusz Gregorczyk 2024-09-08 16:50:24 +02:00 committed by GitHub
parent aa8c4a6eb7
commit 7bab3579ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -331,7 +331,11 @@ def async_register_services( # noqa: C901
"type": "reminder_add",
"temp_id": str(uuid.uuid1()),
"uuid": str(uuid.uuid1()),
"args": {"item_id": api_task.id, "due": reminder_due},
"args": {
"item_id": api_task.id,
"type": "absolute",
"due": reminder_due,
},
}
]
}