Fix missing parameter in casts
parent
7dae1bad3c
commit
3711d8ae3e
|
@ -24,14 +24,14 @@ export default async function fetchHandiworkURLs(query: HandiworkSearchQuery, li
|
||||||
// Convert the query
|
// Convert the query
|
||||||
if (searchType === "latest") {
|
if (searchType === "latest") {
|
||||||
// Cast the query
|
// Cast the query
|
||||||
const castedQuery = query.cast<LatestSearchQuery>();
|
const castedQuery = query.cast<LatestSearchQuery>("LatestSearchQuery");
|
||||||
|
|
||||||
// Fetch the urls
|
// Fetch the urls
|
||||||
urls = await fetchLatestHandiworkURLs(castedQuery, limit);
|
urls = await fetchLatestHandiworkURLs(castedQuery, limit);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Cast the query
|
// Cast the query
|
||||||
const castedQuery = query.cast<ThreadSearchQuery>();
|
const castedQuery = query.cast<ThreadSearchQuery>("ThreadSearchQuery");
|
||||||
|
|
||||||
// Fetch the urls
|
// Fetch the urls
|
||||||
urls = await fetchThreadHandiworkURLs(castedQuery, limit);
|
urls = await fetchThreadHandiworkURLs(castedQuery, limit);
|
||||||
|
|
Loading…
Reference in New Issue