I don't even know

This commit is contained in:
taskylizard 2023-11-19 11:44:00 +00:00
parent 566a259896
commit b07cf62030

View File

@ -8,9 +8,6 @@ export default defineEventHandler(async (event) => {
);
const env = useRuntimeConfig(event);
if (!["bug", "suggestion", "other", "appreciate"].includes(type!) || !message)
throw new Error("Invalid input.");
let description = `${message}\n\n`;
if (contact) description += `**Contact:** ${contact}`;
if (page) description += `**Page:** \`${page}\``;