Skip to content

Commit

Permalink
Hotfix for unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nh602 committed Jun 20, 2024
1 parent 28611b1 commit 55df7b5
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions frontend/src/services/Vendors/VendorsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 55df7b5

Please sign in to comment.