1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-29 00:41:34 +02:00

Fix database page property mapping for select and multi_select

This commit is contained in:
David Stotijn
2021-05-15 00:15:31 +02:00
parent 4726db0bf2
commit cea180062e

View File

@ -41,8 +41,8 @@ type DatabasePageProperties map[string]DatabasePageProperty
type DatabasePageProperty struct {
DatabaseProperty
RichText []RichText `json:"rich_text"`
Select *SelectMetadata `json:"select"`
MultiSelect []SelectMetadata `json:"multi_select"`
Select *SelectOptions `json:"select"`
MultiSelect []SelectOptions `json:"multi_select"`
}
// UnmarshalJSON implements json.Unmarshaler.