feat: Add ParentID to Label

This commit is contained in:
James Houlahan
2023-02-28 11:29:40 +01:00
committed by James
parent 6100d39d97
commit 781ee183e1
2 changed files with 8 additions and 5 deletions

View File

@@ -21,7 +21,9 @@ const (
)
type Label struct {
ID string
ID string
ParentID string
Name string
Path []string
Color string

View File

@@ -31,9 +31,10 @@ func (label *label) toLabel(labels map[string]*label) proton.Label {
}
return proton.Label{
ID: label.labelID,
Name: label.name,
Path: path,
Type: label.labelType,
ID: label.labelID,
ParentID: label.parentID,
Name: label.name,
Path: path,
Type: label.labelType,
}
}