From 55df7b5f309158b0fafff828724ab45ecc94c587 Mon Sep 17 00:00:00 2001 From: Nicholas Henley Date: Thu, 20 Jun 2024 03:32:50 +0000 Subject: [PATCH] Hotfix for unused variable --- .../src/services/Vendors/VendorsService.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/frontend/src/services/Vendors/VendorsService.js b/frontend/src/services/Vendors/VendorsService.js index 4ea1c4a..2865980 100644 --- a/frontend/src/services/Vendors/VendorsService.js +++ b/frontend/src/services/Vendors/VendorsService.js @@ -46,23 +46,6 @@ export default class VendorsService { )); } - async getPublicVendors() { - const vendorsData = await this.vendorsRepository.getPublicVendors(); - if (vendorsData == undefined) { - return undefined; - } - - return vendorsData.map((data) => new Vendor( - data.vendor_id, - data.name, - data.email, - data.website, - data.phone_number, - data.image, - data.is_public, - )); - } - async getVendorById(vendorId) { const vendorData = await this.vendorsRepository.getVendorById(vendorId); if (vendorData) { @@ -140,7 +123,7 @@ export default class VendorsService { youtube: vendor.youtube, tiktok: vendor.tiktok, pinterest: vendor.pinterest, - is_public: data.is_public, + is_public: vendor.is_public, }; return await this.vendorsRepository.createVendor(vendorData); }