mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Add file from document
This commit is contained in:
@@ -70,6 +70,15 @@ func (i *Item) FromSDKItem(item *sdk.Item) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Items of 'Document' category keeps file information in the Document field.
|
||||||
|
if item.Category == sdk.ItemCategoryDocument {
|
||||||
|
i.Files = append(i.Files, File{
|
||||||
|
ID: item.Document.ID,
|
||||||
|
Name: item.Document.Name,
|
||||||
|
Size: int(item.Document.Size),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
i.CreatedAt = item.CreatedAt
|
i.CreatedAt = item.CreatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user