Fix missing parameter in casts

pull/73/head
MillenniumEarl 2021-03-03 20:28:45 +01:00
parent 7dae1bad3c
commit 3711d8ae3e
1 changed files with 2 additions and 2 deletions

View File

@ -24,14 +24,14 @@ export default async function fetchHandiworkURLs(query: HandiworkSearchQuery, li
// Convert the query
if (searchType === "latest") {
// Cast the query
const castedQuery = query.cast<LatestSearchQuery>();
const castedQuery = query.cast<LatestSearchQuery>("LatestSearchQuery");
// Fetch the urls
urls = await fetchLatestHandiworkURLs(castedQuery, limit);
}
else {
// Cast the query
const castedQuery = query.cast<ThreadSearchQuery>();
const castedQuery = query.cast<ThreadSearchQuery>("ThreadSearchQuery");
// Fetch the urls
urls = await fetchThreadHandiworkURLs(castedQuery, limit);