mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 08:20:58 -05:00
Made use of custom fetch
in ModrinthUploader
This commit is contained in:
parent
cd9c696b4e
commit
156eade8c0
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export class ModrinthUploader extends GenericPlatformUploader<ModrinthUploaderOp
|
||||||
protected async uploadCore(request: ModrinthUploadRequest): Promise<ModrinthUploadReport> {
|
protected async uploadCore(request: ModrinthUploadRequest): Promise<ModrinthUploadReport> {
|
||||||
ArgumentError.throwIfNullOrEmpty(request.id, "request.id");
|
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 unfeatureMode = request.unfeatureMode ?? (request.featured ? ModrinthUnfeatureMode.SUBSET : ModrinthUnfeatureMode.NONE);
|
||||||
|
|
||||||
const project = await this.getProject(request.id, api);
|
const project = await this.getProject(request.id, api);
|
||||||
|
|
Loading…
Reference in a new issue