You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It sorts the connections by ascending updatedAt, and takes the first one. I confirmed the behavior using the API code on my own organization, which has three connections. It always returned the oldest connection, not the connection that was just made.
Hi @edlebert thank you for picking this up.
I've tested and made the change locally, we're deploying a few things next week to the xero-ruby SDK, so this change will be added in at the same time.
It sorts the connections by ascending updatedAt, and takes the first one. I confirmed the behavior using the API code on my own organization, which has three connections. It always returned the oldest connection, not the connection that was just made.
The code currently is
But since the timestamps are ISO format, we can just sort them as strings, and take the last, so it should/could be
The text was updated successfully, but these errors were encountered: