Forgot to normalize the response as undefined

This commit is contained in:
Kir_Antipov 2024-01-04 09:22:18 +00:00
parent ef46ac5abb
commit ee9458a1c4

View file

@ -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;
} }
/** /**