Fix typo in webhook delete response (#13409)

It's a webhook, not a schedule.

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
David SomersandKeith Williams authored and GitHub committed 2024-01-26 19:29:24 +00:00
1 parent f9359aaa7b
commit 3fa710fc1c
1 file changed
+1 -1
+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);