remove contacts field

This commit is contained in:
taskylizard
2023-11-19 21:35:33 +00:00
parent bf3dae2258
commit a14f3966c7
3 changed files with 12 additions and 25 deletions

View File

@@ -2,14 +2,10 @@ import { fetcher } from "itty-fetcher";
import { FeedbackSchema, getFeedbackOption } from "../types/Feedback";
export default defineEventHandler(async (event) => {
const { message, page, contact, type } = await readValidatedBody(
event,
FeedbackSchema.parseAsync,
);
const { message, page, type } = await readValidatedBody(event, FeedbackSchema.parseAsync);
const env = useRuntimeConfig(event);
let description = `${message}\n\n`;
if (contact) description += `**Contact:** ${contact}`;
if (page) description += `**Page:** \`${page}\``;
await fetcher()