Silicone Soap Dish for Bar Soap Holder for Shower Bathroom Self Draining Waterfa
Silicone Soap Dish for Bar Soap Holder for Shower Bathroom Self Draining Waterfall Drying Tray Keep Soap Bars Dry Clean & Easy Cleaning (Black*2, 2)
import { bookServiceWithMember } from 'backend/bookService'; import { getPricingPlan } from 'backend/pricingPlan'; $w.onReady(function () { $w('#bookButton').onClick(async () => { const memberId = $w('#memberIdInput').value; const serviceId = $w('#serviceIdInput').value; const otherMemberId = $w('#otherMemberIdInput').value; const planId = await getPricingPlan(memberId); if (planId) { const bookingResult = await bookServiceWithMember(memberId, serviceId, otherMemberId, planId); if (bookingResult.success) { console.log('Service booked successfully with another member'); } else { console.log('Failed to book service:', bookingResult.error); } } else { console.log('No valid pricing plan found for this member'); } }); });