fix(migration): remove unused is_deleted flag from Todoist api response

Related discussion: https://community.vikunja.io/t/importing-tasks-from-todoist/322
This commit is contained in:
kolaente 2023-05-08 15:32:27 +02:00
parent 9c66b473dd
commit 7d8c42ab98
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 10 deletions

View File

@ -52,7 +52,6 @@ type label struct {
Name string `json:"name"` Name string `json:"name"`
Color string `json:"color"` Color string `json:"color"`
ItemOrder int64 `json:"item_order"` ItemOrder int64 `json:"item_order"`
IsDeleted bool `json:"is_deleted"`
IsFavorite bool `json:"is_favorite"` IsFavorite bool `json:"is_favorite"`
} }
@ -93,7 +92,6 @@ type item struct {
AssignedByUID string `json:"assigned_by_uid"` AssignedByUID string `json:"assigned_by_uid"`
ResponsibleUID string `json:"responsible_uid"` ResponsibleUID string `json:"responsible_uid"`
Checked bool `json:"checked"` Checked bool `json:"checked"`
IsDeleted bool `json:"is_deleted"`
DateAdded time.Time `json:"added_at"` DateAdded time.Time `json:"added_at"`
HasMoreNotes bool `json:"has_more_notes"` HasMoreNotes bool `json:"has_more_notes"`
DateCompleted time.Time `json:"completed_at"` DateCompleted time.Time `json:"completed_at"`
@ -130,7 +128,6 @@ type note struct {
ItemID string `json:"item_id"` ItemID string `json:"item_id"`
Content string `json:"content"` Content string `json:"content"`
FileAttachment *fileAttachment `json:"file_attachment"` FileAttachment *fileAttachment `json:"file_attachment"`
IsDeleted bool `json:"is_deleted"`
Posted time.Time `json:"posted_at"` Posted time.Time `json:"posted_at"`
} }
@ -138,19 +135,17 @@ type projectNote struct {
Content string `json:"content"` Content string `json:"content"`
FileAttachment *fileAttachment `json:"file_attachment"` FileAttachment *fileAttachment `json:"file_attachment"`
ID int64 `json:"id"` ID int64 `json:"id"`
IsDeleted int64 `json:"is_deleted"`
Posted time.Time `json:"posted"` Posted time.Time `json:"posted"`
ProjectID string `json:"project_id"` ProjectID string `json:"project_id"`
UidsToNotify []int64 `json:"uids_to_notify"` UidsToNotify []int64 `json:"uids_to_notify"`
} }
type reminder struct { type reminder struct {
ID string `json:"id"` ID string `json:"id"`
ItemID string `json:"item_id"` ItemID string `json:"item_id"`
Type string `json:"type"` Type string `json:"type"`
Due *dueDate `json:"due"` Due *dueDate `json:"due"`
MmOffset int64 `json:"mm_offset"` MmOffset int64 `json:"mm_offset"`
IsDeleted int64 `json:"is_deleted"`
} }
type section struct { type section struct {