mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2025-01-22 18:14:45 +01:00
Made use of custom fetch
in CurseForgeUploader
This commit is contained in:
parent
1d6cb47d45
commit
254c18a087
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ export class CurseForgeUploader extends GenericPlatformUploader<CurseForgeUpload
|
||||||
protected async uploadCore(request: CurseForgeUploadRequest): Promise<CurseForgeUploadReport> {
|
protected async uploadCore(request: CurseForgeUploadRequest): Promise<CurseForgeUploadReport> {
|
||||||
ArgumentError.throwIfNullOrEmpty(request.id, "request.id");
|
ArgumentError.throwIfNullOrEmpty(request.id, "request.id");
|
||||||
|
|
||||||
const api = new CurseForgeUploadApiClient({ token: request.token.unwrap() });
|
const api = new CurseForgeUploadApiClient({ token: request.token.unwrap(), fetch: this._fetch });
|
||||||
const eternalApi = new CurseForgeEternalApiClient();
|
const eternalApi = new CurseForgeEternalApiClient({ fetch: this._fetch });
|
||||||
|
|
||||||
const project = await this.getProject(request.id, eternalApi);
|
const project = await this.getProject(request.id, eternalApi);
|
||||||
const version = await this.createVersion(request, project.id, api, eternalApi);
|
const version = await this.createVersion(request, project.id, api, eternalApi);
|
||||||
|
|
Loading…
Reference in a new issue