diff --git a/pkg/modules/migration/todoist/todoist.go b/pkg/modules/migration/todoist/todoist.go index fab3c1ca6cf..9bece40ed6a 100644 --- a/pkg/modules/migration/todoist/todoist.go +++ b/pkg/modules/migration/todoist/todoist.go @@ -124,7 +124,6 @@ type fileAttachment struct { type note struct { ID string `json:"id"` - PostedUID int64 `json:"posted_uid"` ProjectID string `json:"project_id"` ItemID string `json:"item_id"` Content string `json:"content"` @@ -139,7 +138,6 @@ type projectNote struct { ID int64 `json:"id"` IsDeleted int64 `json:"is_deleted"` Posted time.Time `json:"posted"` - PostedUID int64 `json:"posted_uid"` ProjectID string `json:"project_id"` UidsToNotify []int64 `json:"uids_to_notify"` } diff --git a/pkg/modules/migration/todoist/todoist_test.go b/pkg/modules/migration/todoist/todoist_test.go index 28da2f054e2..d75a0a469e8 100644 --- a/pkg/modules/migration/todoist/todoist_test.go +++ b/pkg/modules/migration/todoist/todoist_test.go @@ -215,38 +215,33 @@ func TestConvertTodoistToVikunja(t *testing.T) { }, Notes: []*note{ { - ID: "101476", - PostedUID: 1855589, - ItemID: "400000000", - Content: "Lorem Ipsum dolor sit amet", - Posted: time1, + ID: "101476", + ItemID: "400000000", + Content: "Lorem Ipsum dolor sit amet", + Posted: time1, }, { - ID: "101477", - PostedUID: 1855589, - ItemID: "400000001", - Content: "Lorem Ipsum dolor sit amet", - Posted: time1, + ID: "101477", + ItemID: "400000001", + Content: "Lorem Ipsum dolor sit amet", + Posted: time1, }, { - ID: "101478", - PostedUID: 1855589, - ItemID: "400000003", - Content: "Lorem Ipsum dolor sit amet", - Posted: time1, + ID: "101478", + ItemID: "400000003", + Content: "Lorem Ipsum dolor sit amet", + Posted: time1, }, { - ID: "101479", - PostedUID: 1855589, - ItemID: "400000010", - Content: "Lorem Ipsum dolor sit amet", - Posted: time1, + ID: "101479", + ItemID: "400000010", + Content: "Lorem Ipsum dolor sit amet", + Posted: time1, }, { - ID: "101480", - PostedUID: 1855589, - ItemID: "400000101", - Content: "Lorem Ipsum dolor sit amet", + ID: "101480", + ItemID: "400000101", + Content: "Lorem Ipsum dolor sit amet", FileAttachment: &fileAttachment{ FileName: "file.md", FileType: "text/plain", @@ -263,35 +258,30 @@ func TestConvertTodoistToVikunja(t *testing.T) { Content: "Lorem Ipsum dolor sit amet", ProjectID: "396936926", Posted: time3, - PostedUID: 1855589, }, { ID: 102001, Content: "Lorem Ipsum dolor sit amet 2", ProjectID: "396936926", Posted: time3, - PostedUID: 1855589, }, { ID: 102002, Content: "Lorem Ipsum dolor sit amet 3", ProjectID: "396936926", Posted: time3, - PostedUID: 1855589, }, { ID: 102003, Content: "Lorem Ipsum dolor sit amet 4", ProjectID: "396936927", Posted: time3, - PostedUID: 1855589, }, { ID: 102004, Content: "Lorem Ipsum dolor sit amet 5", ProjectID: "396936927", Posted: time3, - PostedUID: 1855589, }, }, Reminders: []*reminder{