fix: apply reminders from recurrence for api created runs
Description
Run creation via API implemented in !86 (merged) had a bug where it was not setting reminders from recurrence. The MR updates the code to use same function to create runs from both API and scheduled task.
Testing instructions
Step by step procedure
- Checkout master branch
- Follow instructions in !86 (merged) to setup recurrence and event mapping.
- Before triggering the API, add more reminders to recurrence.
- Trigger API and check created run, it should be missing reminders.
- Checkout this branch and re-run the API, this time reminders should be added in the new run.
Author notes and concerns
Frontend files changed as the formatter was not run in previous MR(!93 (merged))