Skip to content

Commit

Permalink
feat: return body to SQS event sources (#628)
Browse files Browse the repository at this point in the history
Co-authored-by: Octavian Vinteler <octavian.vinteler@mindera.com>
  • Loading branch information
OctavianMindera and OctavianMin authored Dec 15, 2023
1 parent 125968c commit 60fe41b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/event-sources/aws/sqs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { emptyResponseMapper } = require('../utils')

const getRequestValuesFromSqs = ({ event }) => {
const method = 'POST'
const headers = { host: 'sqs.amazonaws.com' }
Expand All @@ -12,7 +10,9 @@ const getRequestValuesFromSqs = ({ event }) => {
}
}

const getResponseToSqs = ({ body }) => JSON.parse(body)

module.exports = {
getRequest: getRequestValuesFromSqs,
getResponse: emptyResponseMapper
getResponse: getResponseToSqs
}

0 comments on commit 60fe41b

Please sign in to comment.