mirror of
https://github.com/dstotijn/go-notion.git
synced 2024-11-24 08:42:26 +02:00
Remove stray code
This commit is contained in:
parent
205f94cc89
commit
019301c714
@ -226,9 +226,7 @@ func (c *Client) UpdatePageProps(ctx context.Context, pageID string, params Upda
|
||||
// FindBlockChildrenByID returns a list of block children for a given block ID.
|
||||
// See: https://developers.notion.com/reference/post-database-query
|
||||
func (c *Client) FindBlockChildrenByID(ctx context.Context, blockID string, query *FindBlockChildrenQuery) (result BlockChildrenResponse, err error) {
|
||||
body := &bytes.Buffer{}
|
||||
|
||||
req, err := c.newRequest(ctx, http.MethodGet, fmt.Sprintf("/blocks/%v/children", blockID), body)
|
||||
req, err := c.newRequest(ctx, http.MethodGet, fmt.Sprintf("/blocks/%v/children", blockID), nil)
|
||||
if err != nil {
|
||||
return BlockChildrenResponse{}, fmt.Errorf("notion: invalid request: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user