Skip to content

Commit

Permalink
fix(tasks): remove context check in handler (#4042)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored Mar 14, 2024
1 parent 56d175e commit de4ad04
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/tasks/src/handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de4ad04

Please sign in to comment.