From 3fa710fc1c856e9c25925a26a3c973992b2652dd Mon Sep 17 00:00:00 2001 From: David Somers <126989+jalada@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:29:24 -0500 Subject: [PATCH] Fix typo in webhook delete response (#13409) It's a webhook, not a schedule. Co-authored-by: Keith Williams --- apps/api/pages/api/webhooks/[id]/_delete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/pages/api/webhooks/[id]/_delete.ts b/apps/api/pages/api/webhooks/[id]/_delete.ts index 4750741338..4b1ea3404e 100644 --- a/apps/api/pages/api/webhooks/[id]/_delete.ts +++ b/apps/api/pages/api/webhooks/[id]/_delete.ts @@ -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);