Skip to content

Commit

Permalink
💚 fix PageCollection.search_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
r74tech committed Oct 8, 2024
1 parent 59818e3 commit 914bc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikidotrb/lib/wikidotrb/module/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def self.create_or_edit(site:, fullname:, page_id: nil, title: "", source: "", c
)
end

res = PageCollection.search_pages(site: site, query: SearchPagesQuery.new(fullname: fullname))
res = PageCollection.search_pages(site, SearchPagesQuery.new(fullname: fullname))
puts "Search result: #{res.inspect}"
raise Wikidotrb::Common::Exceptions::NotFoundException, "Page creation failed: #{fullname}" if res.empty?

Expand Down

0 comments on commit 914bc23

Please sign in to comment.