From 156eade8c0fc5d8e679576ab1dd05262f8558be8 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 5 Jan 2024 15:28:00 +0000 Subject: [PATCH] Made use of custom `fetch` in `ModrinthUploader` --- src/platforms/modrinth/modrinth-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/modrinth/modrinth-uploader.ts b/src/platforms/modrinth/modrinth-uploader.ts index caf62c1..46f83a4 100644 --- a/src/platforms/modrinth/modrinth-uploader.ts +++ b/src/platforms/modrinth/modrinth-uploader.ts @@ -53,7 +53,7 @@ export class ModrinthUploader extends GenericPlatformUploader { ArgumentError.throwIfNullOrEmpty(request.id, "request.id"); - const api = new ModrinthApiClient({ token: request.token.unwrap() }); + const api = new ModrinthApiClient({ token: request.token.unwrap(), fetch: this._fetch }); const unfeatureMode = request.unfeatureMode ?? (request.featured ? ModrinthUnfeatureMode.SUBSET : ModrinthUnfeatureMode.NONE); const project = await this.getProject(request.id, api);