From 7d8c42ab981a0b1c570eb4a00cce9d307b5da130 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 8 May 2023 15:32:27 +0200 Subject: [PATCH] fix(migration): remove unused is_deleted flag from Todoist api response Related discussion: https://community.vikunja.io/t/importing-tasks-from-todoist/322 --- pkg/modules/migration/todoist/todoist.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkg/modules/migration/todoist/todoist.go b/pkg/modules/migration/todoist/todoist.go index c02afd59639..4df6dae3a60 100644 --- a/pkg/modules/migration/todoist/todoist.go +++ b/pkg/modules/migration/todoist/todoist.go @@ -52,7 +52,6 @@ type label struct { Name string `json:"name"` Color string `json:"color"` ItemOrder int64 `json:"item_order"` - IsDeleted bool `json:"is_deleted"` IsFavorite bool `json:"is_favorite"` } @@ -93,7 +92,6 @@ type item struct { AssignedByUID string `json:"assigned_by_uid"` ResponsibleUID string `json:"responsible_uid"` Checked bool `json:"checked"` - IsDeleted bool `json:"is_deleted"` DateAdded time.Time `json:"added_at"` HasMoreNotes bool `json:"has_more_notes"` DateCompleted time.Time `json:"completed_at"` @@ -130,7 +128,6 @@ type note struct { ItemID string `json:"item_id"` Content string `json:"content"` FileAttachment *fileAttachment `json:"file_attachment"` - IsDeleted bool `json:"is_deleted"` Posted time.Time `json:"posted_at"` } @@ -138,19 +135,17 @@ type projectNote struct { Content string `json:"content"` FileAttachment *fileAttachment `json:"file_attachment"` ID int64 `json:"id"` - IsDeleted int64 `json:"is_deleted"` Posted time.Time `json:"posted"` ProjectID string `json:"project_id"` UidsToNotify []int64 `json:"uids_to_notify"` } type reminder struct { - ID string `json:"id"` - ItemID string `json:"item_id"` - Type string `json:"type"` - Due *dueDate `json:"due"` - MmOffset int64 `json:"mm_offset"` - IsDeleted int64 `json:"is_deleted"` + ID string `json:"id"` + ItemID string `json:"item_id"` + Type string `json:"type"` + Due *dueDate `json:"due"` + MmOffset int64 `json:"mm_offset"` } type section struct {