From 1e80b2def2dd7e7b56c38aa828a06f9b70c628c1 Mon Sep 17 00:00:00 2001 From: Evan <47493765+iamEvanYT@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:31:28 +0000 Subject: [PATCH] Fix addDeveloperProduct not returning a product id (#751) * Update addDeveloperProduct.js * Changed to use Single Quotes * Added + --------- Co-authored-by: Josh --- lib/games/addDeveloperProduct.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/games/addDeveloperProduct.js b/lib/games/addDeveloperProduct.js index cb68b2ddf..b3546d7f0 100644 --- a/lib/games/addDeveloperProduct.js +++ b/lib/games/addDeveloperProduct.js @@ -27,7 +27,7 @@ const nextFunction = (jar, token, universeId, name, priceInRobux, description) = }).then((res) => { if (res.Success && res.Message === 'Name available') { return http({ - url: `//apis.roblox.com/developer-products/v1/universes/${universeId}/developerproducts?name=${name}&description=${description}&priceInRobux=${priceInRobux}`, + url: '//apis.roblox.com/developer-products/v1/universes/' + universeId + '/developerproducts?name=' + name + '&description=' + description + '&priceInRobux=' + priceInRobux, options: { method: 'POST', jar: jar, @@ -47,7 +47,7 @@ const nextFunction = (jar, token, universeId, name, priceInRobux, description) = productId: typeof res.body === 'object' ? res.body.id : JSON.parse(res.body).id } } else { - throw new Error(`Create product failed, ${res.statusCode} ${res.statusMessage}`) + throw new Error('Create product failed, ' + res.statusCode + ' ' + res.statusMessage + '') } }) } else {