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

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