Skip to content

Commit

Permalink
Merge pull request #3 from H0R15H0/fix-get-page-endpoint
Browse files Browse the repository at this point in the history
Fix query validation error in GET /page/:id endpoint
  • Loading branch information
hummusonrails authored Jun 17, 2021
2 parents 4d29394 + 343f4ad commit c6bcf05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/notion/api/endpoints/pages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Pages
# retrieve a page that has not been archived. Defaults to false.
def page(options = {})
throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
get("pages/#{options[:id]}?archived=#{options[:archived]}")
get("pages/#{options[:id]}")
end

#
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/notion/page.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6bcf05

Please sign in to comment.