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