Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HQarroum committed Apr 4, 2024
1 parent 44f14db commit d006d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/middlewares/flow-control/transform/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const description: ServiceDescription = {
* The maximum time the processing lambda
* is allowed to run.
*/
const PROCESSING_TIMEOUT = cdk.Duration.seconds(30);
const PROCESSING_TIMEOUT = cdk.Duration.minutes(1);

/**
* The execution runtime for used compute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ class Lambda implements LambdaInterface {
const results = await evaluate(events);

if (originalEvent.data().document().mimeType() === 'application/cloudevents+json') {
const event = await this.aggregate(results, originalEvent);
await nextAsync(event);
await nextAsync(
await this.aggregate(results, originalEvent)
);
} else {
// If the event is not aggregated, we publish the results produced
// by the transform expression to the next middlewares.
Expand Down

0 comments on commit d006d78

Please sign in to comment.