Skip to content

Conversation

@dkhalife
Copy link
Owner

  • fix type
  • rename enum
  • new model for storing recurrence
  • adjust data type to int array in sql
  • calculate next occurrence

Copilot AI review requested due to automatic review settings February 17, 2025 00:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • go.mod: Language not supported
Comments suppressed due to low confidence (3)

internal/models/task/task.go:11

  • The constant name 'FrequancyTypeOnce' is misspelled. It should be 'FrequencyTypeOnce'.
FrequancyTypeOnce          FrequencyType = "once"

internal/models/task/task.go:12

  • [nitpick] The constant 'RepeatOnce' is not consistent with the naming convention used for other constants. Consider renaming it to 'FrequencyTypeOnce'.
RepeatOnce    = "once"

internal/services/planner/planner.go:7

  • task.NextDueDate could potentially be nil, leading to a runtime panic. Add a nil check before dereferencing.
ScheduledFor: *task.NextDueDate,

@dkhalife dkhalife merged commit 84d9ddc into main Feb 17, 2025
4 checks passed
@dkhalife dkhalife deleted the task_recurrence branch February 17, 2025 01:18
dkhalife added a commit that referenced this pull request Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants