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

View File

@ -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 {