Skip to content

Conversation

@HacDan
Copy link
Contributor

@HacDan HacDan commented Apr 13, 2023

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.

…ng and updated item.go to include due struct

Changed lib/item.go to send Due struct in params for adding and updating tasks. Changed add.go and modify.go to create a struct and attact to item struct instead of setting item.Datestring.
@HacDan HacDan changed the title fix(issue-#216): resolves issue #216 fix(issue-#216): resolves modifying and setting date on task creation Apr 14, 2023
…anged to one-liner struct creation for cleaner code
@kenliu kenliu merged commit 15ce568 into sachaos:master Apr 16, 2023
@kenliu
Copy link
Collaborator

kenliu commented Apr 16, 2023

thanks for the fix!

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