mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 18:01:07 -05:00
Forgot to normalize the response as undefined
This commit is contained in:
parent
ef46ac5abb
commit
ee9458a1c4
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ export class ModrinthApiClient {
|
||||||
async createVersion(version: ModrinthVersionInit): Promise<ModrinthVersion> {
|
async createVersion(version: ModrinthVersionInit): Promise<ModrinthVersion> {
|
||||||
const form = packModrinthVersionInit(version);
|
const form = packModrinthVersionInit(version);
|
||||||
const response = await this._fetch("/version", HttpRequest.post().with(form));
|
const response = await this._fetch("/version", HttpRequest.post().with(form));
|
||||||
return await response.json();
|
return await response.json() ?? undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue