From 004143280bb4a72356cf137bbfb23b1b3b2a6362 Mon Sep 17 00:00:00 2001 From: Joscha Maier Date: Thu, 26 Sep 2024 12:48:40 +0200 Subject: [PATCH] jsjsjsjsjsjs --- gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ab5de4c..c9095db 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -259,7 +259,7 @@ async function uploadToPackageRegistry(done) { /* Publish to FoundryVTT /* ----------------------------------------- */ -function publishToFoundry(done) { +async function publishToFoundry(done) { const moduleManifestPath = 'system.json'; const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath)); @@ -299,7 +299,7 @@ function publishToFoundry(done) { } // Send the POST request to Foundry VTT API - const response = fetch('https://api.foundryvtt.com/_api/packages/release', { + const response = await fetch('https://api.foundryvtt.com/_api/packages/release', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -308,7 +308,7 @@ function publishToFoundry(done) { body: JSON.stringify(payload), }); - const responseData = response.json(); + const responseData = await response.json(); if (responseData.status === 'success') { console.log('Successfully published to Foundry VTT:');