From de4ad040da8aae14cb2f97998f77bc10651f933e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Zori=C4=87?= Date: Thu, 14 Mar 2024 14:36:32 +0100 Subject: [PATCH] fix(tasks): remove context check in handler (#4042) --- packages/tasks/src/handler/index.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/tasks/src/handler/index.ts b/packages/tasks/src/handler/index.ts index 0376380462..8cfb97b8c2 100644 --- a/packages/tasks/src/handler/index.ts +++ b/packages/tasks/src/handler/index.ts @@ -51,18 +51,6 @@ export const createHandler = (params: HandlerParams): HandlerCallable => { }); app.post(url, async (_, reply) => { - /** - * Happened to a client so adding a check. - * We cannot reproduce it. - */ - if (!context) { - console.error("Missing Lambda context."); - return reply.send({ - error: { - message: "This handler requires Lambda context to be passed." - } - }); - } const handler = new TaskRunner( /** * We can safely cast because we know that the context is of type tasks/Context