How do I pass the queue name to the handler define...
# help
a
How do I pass the queue name to the handler defined in the Queue construct? I need it in the params of
sqs.receiveMessage()
.
t
You shouldn't need to do this as the queue name shows up in the event ( I think ) - what is sqs.receiveMessage ?
My intuition was to extract the payload from the event that is passed to the consumer, but I couldn't find it in there, so I decided it's time to look up some docs
actually...it seems I made some error before, when i was looking at the event, because I can now see my payload
it's in
event.Records[0].body
for example
@thdxr thanks for pushing me on the right track