clean up
This commit is contained in:
@@ -2,32 +2,12 @@
|
||||
|
||||
import { StoreProductVariant } from '@medusajs/types';
|
||||
|
||||
import { updateLineItem } from "@lib/data/cart";
|
||||
import {
|
||||
bookAppointment,
|
||||
createInitialReservation,
|
||||
createInitialReservation
|
||||
} from '~/lib/services/connected-online.service';
|
||||
import { handleAddToCart } from '~/lib/services/medusaCart.service';
|
||||
|
||||
import { updateLineItem } from '../../../../../packages/features/medusa-storefront/src/lib/data';
|
||||
|
||||
export async function bookTimeAction(
|
||||
serviceId: number,
|
||||
clinicId: number,
|
||||
appointmentUserId: number,
|
||||
syncUserId: number,
|
||||
startTime: Date,
|
||||
comments?: string,
|
||||
) {
|
||||
return bookAppointment(
|
||||
serviceId,
|
||||
clinicId,
|
||||
appointmentUserId,
|
||||
syncUserId,
|
||||
startTime,
|
||||
comments,
|
||||
);
|
||||
}
|
||||
|
||||
export async function createInitialReservationAction(
|
||||
selectedVariant: Pick<StoreProductVariant, 'id'>,
|
||||
countryCode: string,
|
||||
|
||||
Reference in New Issue
Block a user