* feat: create new markNoShow endpoint * chore: add schema * chore: update name * chore: save progress * refactor: improve code and types * fix: unit test * chore: improvements * chore: move query to booking repository * fix: type error
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import handleMarkNoShow from "@calcom/features/handleMarkNoShow";
|
|
|
|
import type { TNoShowInputSchema } from "./markHostAsNoShow.schema";
|
|
|
|
type NoShowOptions = {
|
|
input: TNoShowInputSchema;
|
|
};
|
|
|
|
export const noShowHandler = async ({ input }: NoShowOptions) => {
|
|
const { bookingUid, noShowHost } = input;
|
|
|
|
return handleMarkNoShow({ bookingUid, noShowHost });
|
|
};
|
|
|
|
export default noShowHandler;
|