hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.66k stars 3.75k forks source link

`Brain.users()` claims it returns an Array but returns an Object #1724

Closed yincrash closed 7 months ago

yincrash commented 7 months ago

https://github.com/hubotio/hubot/blob/f212f5d31011dbec938d1419bf4a84cf61571128/src/Brain.mjs#L160

When attempting to use .forEach on the return result, it causes an error since it's not an Array. A fix could either be extracting all the Users into an Array to return or change the promise of what the function should return.

joeyguerra commented 7 months ago

I'll update the comment.