Skip to content

Commit

Permalink
db-tabulator: don't follow redirect while reading in queries
Browse files Browse the repository at this point in the history
!restart
  • Loading branch information
siddharthvp committed Dec 18, 2023
1 parent e89ee6b commit 4b000c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-tabulator/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function processQueries(allQueries: Record<string, Query[]>) {
}

export async function fetchQueriesForPage(page: string): Promise<Query[]> {
let text = (await bot.read(page))?.revisions?.[0]?.content;
let text = (await bot.read(page, { redirects: false }))?.revisions?.[0]?.content;
if (!text) {
return [];
}
Expand Down

0 comments on commit 4b000c2

Please sign in to comment.