Fix typo in webhook delete response (#13409)

It's a webhook, not a schedule.

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
David Somers
2024-01-26 19:29:24 +00:00
committed by GitHub
co-authored by Keith Williams
parent f9359aaa7b
commit 3fa710fc1c
+1 -1
View File
@@ -39,7 +39,7 @@ export async function deleteHandler(req: NextApiRequest) {
const { prisma, query } = req;
const { id } = schemaQueryIdAsString.parse(query);
await prisma.webhook.delete({ where: { id } });
return { message: `Schedule with id: ${id} deleted successfully` };
return { message: `Webhook with id: ${id} deleted successfully` };
}
export default defaultResponder(deleteHandler);