Your flow is corrupted as you have not posted the code in the correct manner for forum to parse correctly
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json
Two forum members have noted that you need to join the messages as they are coming from different node, so the messages do not arrive in your function at the same time.
See this article in the cookbook for an example of how to join messages into one object.