From 19c65a11f7b8546f010c15f3cedd33d697a271bd Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 9 Sep 2022 04:41:59 -0500 Subject: [PATCH] Save biz radio station --- scripts/server/business.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server/business.js b/scripts/server/business.js index 8aaf7306..cd12571a 100644 --- a/scripts/server/business.js +++ b/scripts/server/business.js @@ -1933,7 +1933,7 @@ function saveBusinessToDatabase(businessId) { ["biz_has_interior", boolToInt(tempBusinessData.hasInterior)], ["biz_interior_lights", boolToInt(tempBusinessData.interiorLights)], ["biz_label_help_type", tempBusinessData.labelHelpType], - ["biz_radio_station", toInteger(tempBusinessData.streamingRadioStation)], + ["biz_radio_station", (getRadioStationData(tempBusinessData.streamingRadioStationIndex) != false) ? toInteger(getRadioStationData(tempBusinessData.streamingRadioStationIndex).databaseId) : -1], ["biz_custom_interior", boolToInt(tempBusinessData.customInterior)], ["biz_buy_price", tempBusinessData.buyPrice], //["biz_rent_price", tempBusinessData.rentPrice],