bounswe / bounswe2020group9

0 stars 4 forks source link

Message API - message order is reversed #308

Closed ocebenzer closed 3 years ago

ocebenzer commented 3 years ago

right now /api/messages/all/ orders the messages in least-recent order however/api/messages// orders in the most-recent order i think this was not intended

mehmetkemaloglu commented 3 years ago

You are right, this was not intended of course. I forgot to check the order before the commit. I can fix this easily. Which order do you prefer?

ocebenzer commented 3 years ago

I think least-recent would be better, so that for example, first element of the message array will always be the same

ocebenzer commented 3 years ago

bug fixed, closing the issue