From 644a1889293c2191612bc3ce57824bffef6a640b Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 26 Jun 2022 13:31:22 -0500 Subject: [PATCH] Const naming --- scripts/server/economy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/economy.js b/scripts/server/economy.js index c320b850..4632aef8 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -193,13 +193,13 @@ function getAllVehiclesOwnedByPlayer(client) { // =========================================================================== function getAllBusinessesOwnedByPlayer(client) { - return getServerData().businesses.filter((b) => b.ownerType == VRR_BIZOWNER_PLAYER && b.ownerId == getPlayerCurrentSubAccount(client).databaseId); + return getServerData().businesses.filter((b) => b.ownerType == VRR_BIZ_OWNER_PLAYER && b.ownerId == getPlayerCurrentSubAccount(client).databaseId); } // =========================================================================== function getAllHousesOwnedByPlayer(client) { - return getServerData().houses.filter((h) => h.ownerType == VRR_HOUSEOWNER_PLAYER && h.ownerId == getPlayerCurrentSubAccount(client).databaseId); + return getServerData().houses.filter((h) => h.ownerType == VRR_HOUSE_OWNER_PLAYER && h.ownerId == getPlayerCurrentSubAccount(client).databaseId); } // ===========================================================================