mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-08 23:46:12 +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.
|
// FindBlockChildrenByID returns a list of block children for a given block ID.
|
||||||
// See: https://developers.notion.com/reference/post-database-query
|
// See: https://developers.notion.com/reference/post-database-query
|
||||||
func (c *Client) FindBlockChildrenByID(ctx context.Context, blockID string, query *FindBlockChildrenQuery) (result BlockChildrenResponse, err error) {
|
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), nil)
|
||||||
|
|
||||||
req, err := c.newRequest(ctx, http.MethodGet, fmt.Sprintf("/blocks/%v/children", blockID), body)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return BlockChildrenResponse{}, fmt.Errorf("notion: invalid request: %w", err)
|
return BlockChildrenResponse{}, fmt.Errorf("notion: invalid request: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user