Skip to content

Commit

Permalink
Added finalize to RAW callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogelio-o committed Dec 26, 2017
1 parent a1a9eb1 commit 55a7439
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"aws-sdk": "^2.161.0",
"lambda-framework": "^1.0.20",
"lambda-framework": "^1.0.22",
"node-cache": "^4.1.1"
},
"nyc": {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/AWSRawCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ export default class AWSRawCallback implements IRawCallback {
this.callback(null, {statusCode, headers, body});
}

public finalize(err?: Error): void {
this.callback(err);
}

}

0 comments on commit 55a7439

Please sign in to comment.