sachaos / todoist

Todoist CLI Client. I ❤️ Todoist and CLI.
MIT License
1.47k stars 105 forks source link

fix(issue-#216): resolves modifying and setting date on task creation #225

Closed HacDan closed 1 year ago

HacDan commented 1 year ago

Changed lib/item.go to send Due struct in params for adding and updating tasks. Changed add.go and modify.go to create a Due struct and add said Due struct to Item struct instead of setting item.Datestring. This change is due to an API change by Todoist.

I did have to bring the library into modify.go so I could create the Due struct. It was already referenced for other purposes in add.go

There may be a better way to do this, it seems a bit messy to me, so I'm (always) open to feedback.

kenliu commented 1 year ago

thanks for the fix!