From 47c1c277af52bbc9b528ce0bc42e04b709f2d2db Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 10 Aug 2022 14:15:19 -0500 Subject: [PATCH] Woops don't use bool util for biz buy price save --- scripts/server/business.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/business.js b/scripts/server/business.js index 717fce7d..84b02903 100644 --- a/scripts/server/business.js +++ b/scripts/server/business.js @@ -1910,8 +1910,8 @@ function saveBusinessToDatabase(businessId) { ["biz_label_help_type", tempBusinessData.labelHelpType], ["biz_radio_station", toInteger(tempBusinessData.streamingRadioStation)], ["biz_custom_interior", boolToInt(tempBusinessData.customInterior)], - ["biz_buy_price", boolToInt(tempBusinessData.buyPrice)], - //["biz_rent_price", boolToInt(tempBusinessData.rentPrice)], + ["biz_buy_price", tempBusinessData.buyPrice], + //["biz_rent_price", tempBusinessData.rentPrice], ]; let dbQuery = null; @@ -2258,7 +2258,7 @@ function deleteBusiness(businessId, whoDeleted = 0) { deleteBusinessPickups(businessId); if (dbConnection) { - dbQuery = queryDatabase(dbConnection, `UPDATE biz_main SET biz_deleted = 1, biz_when_deleted = UNIX_TIMESTAMP(), biz_who_deleted = ${whoDeleted} WHERE biz_id ${tempBusinessData.databaseId}`); + dbQuery = queryDatabase(dbConnection, `UPDATE biz_main SET biz_deleted = 1, biz_when_deleted = UNIX_TIMESTAMP(), biz_who_deleted = ${whoDeleted} WHERE biz_id = ${tempBusinessData.databaseId}`); if (dbQuery) { freeDatabaseQuery(dbQuery); }