fix(migration): revert wrongly changed url

This commit is contained in:
kolaente 2023-03-28 14:52:19 +02:00
parent 53b2ade5bb
commit a8b76772ff
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func getMicrosoftTodoData(token string) (microsoftTodoData []*project, err error
microsoftTodoData = []*project{}
projects := &projectsResponse{}
err = makeAuthenticatedGetRequest(token, "projects", projects)
err = makeAuthenticatedGetRequest(token, "lists", projects)
if err != nil {
log.Errorf("[Microsoft Todo Migration] Could not get projects: %s", err)
return
@ -227,7 +227,7 @@ func getMicrosoftTodoData(token string) (microsoftTodoData []*project, err error
log.Debugf("[Microsoft Todo Migration] Got %d projects", len(projects.Value))
for _, project := range projects.Value {
link := "projects/" + project.ID + "/tasks"
link := "lists/" + project.ID + "/tasks"
project.Tasks = []*task{}
// Microsoft's Graph API has pagination, so we're going through all pages to get all tasks