1
0

fix(caldav): use const for repeat modes

This commit is contained in:
kolaente
2022-12-24 14:34:59 +01:00
parent 194b88e2eb
commit 897a6e5d5c
3 changed files with 10 additions and 11 deletions

View File

@ -35,11 +35,6 @@ func GetCaldavTodosForTasks(list *models.ListWithTasksAndBuckets, listTasks []*m
duration := t.EndDate.Sub(t.StartDate)
repeatMode := "DEFAULT"
if t.RepeatMode == models.TaskRepeatModeMonth {
repeatMode = "MONTHLY"
}
caldavtodos = append(caldavtodos, &Todo{
Timestamp: t.Updated,
UID: t.UID,
@ -55,7 +50,7 @@ func GetCaldavTodosForTasks(list *models.ListWithTasksAndBuckets, listTasks []*m
DueDate: t.DueDate,
Duration: duration,
RepeatAfter: t.RepeatAfter,
RepeatMode: repeatMode,
RepeatMode: t.RepeatMode,
})
}