Skip to content
Snippets Groups Projects
Commit 5eac844a authored by aurieh's avatar aurieh
Browse files

his binding

parent a29f0a64
No related branches found
No related tags found
No related merge requests found
...@@ -128,13 +128,13 @@ module.exports = function* scan () { ...@@ -128,13 +128,13 @@ module.exports = function* scan () {
debug('received data from SQS'); debug('received data from SQS');
// Reject incoming data // Reject incoming data
function rejectData (msg) { const rejectData = msg => {
this.status = 400; this.status = 400;
this.body = { this.body = {
code: 400, code: 400,
message: msg message: msg
}; };
} };
// Test incoming data // Test incoming data
if (this.req.body.Event === 's3:TestEvent') return rejectData('test event'); if (this.req.body.Event === 's3:TestEvent') return rejectData('test event');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment