mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 09:11:53 -05:00
e4eb82b738
- Instead of having code that relied on the result being sorted (which wasn't specified in the query and therefore not safe to assume so). Use a map where it doesn't care if the result that we get from the database is sorted or not. - Added unit test.
11 lines
129 B
YAML
11 lines
129 B
YAML
-
|
|
id: 3
|
|
user_id: 1
|
|
issue_id: 2
|
|
created_unix: 1500988004
|
|
|
|
-
|
|
id: 4
|
|
user_id: 3
|
|
issue_id: 0
|
|
created_unix: 1500988003
|