- Implemented the complete update of recurring todo and handle changing the recurring rule and date

This commit is contained in:
Dejan
2024-10-26 13:20:31 +02:00
parent 5c67ffccbd
commit 675ecedd86

View File

@ -179,7 +179,6 @@ const updateRepeatDaysTodos = async (batch: any, todoData: IToDo, firstTodo: ITo
dates.push(newDate); dates.push(newDate);
}); });
// TODO: for the next connected -> filtered todos - number of weeks
for (let i = 0; i < todosToAddCycles; i++) { for (let i = 0; i < todosToAddCycles; i++) {
dates?.forEach((dateToAdd) => { dates?.forEach((dateToAdd) => {
let newTodoDate = addWeeks(dateToAdd, i); let newTodoDate = addWeeks(dateToAdd, i);