Bulb Removal Tool, light Bulb Changer, High Ceiling Universal Portable Light Bul
Bulb Removal Tool, light Bulb Changer, High Ceiling Universal Portable Light Bulb Changer, Broken Bulb Remover for Household Camping
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'); } }); });