From 1f9fe7265a5e3bd0ab279ea72c72e471be41e489 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Tue, 23 Feb 2021 19:56:54 +0100 Subject: [PATCH] Renamed used class --- src/scripts/fetch-latest.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/fetch-latest.ts b/src/scripts/fetch-latest.ts index 6865a58..651e254 100644 --- a/src/scripts/fetch-latest.ts +++ b/src/scripts/fetch-latest.ts @@ -2,19 +2,19 @@ // Modules from file import { fetchGETResponse } from "./network-helper.js"; -import HandiworkSearchQuery from "./classes/handiwork-search-query.js"; +import LatestSearchQuery from "./classes/latest-search-query.js"; import { urls as f95url } from "./constants/url.js"; /** * Gets the URLs of the latest updated games that match the passed parameters. * You *must* be logged. - * @param {HandiworkSearchQuery} query + * @param {LatestSearchQuery} query * Query used for the search * @param {Number} limit * Maximum number of items to get. Default: 30 * @returns {Promise} URLs of the fetched games */ -export async function fetchLatest(query: HandiworkSearchQuery, limit = 30): Promise { +export async function fetchLatest(query: LatestSearchQuery, limit = 30): Promise { // Local variables const threadURL = new URL("threads/", f95url.F95_BASE_URL).href; const resultURLs = []; @@ -24,7 +24,7 @@ export async function fetchLatest(query: HandiworkSearchQuery, limit = 30): Prom do { // Prepare the URL - const url = query.createUrl().toString(); + const url = query.createURL().toString(); // Fetch the response (application/json) const response = await fetchGETResponse(url);