Fix problem when database ID is not incremented as expected (#17229)

Although #17124 fixed the same issue for the feed, some other parts
with the same issue were found.

Co-authored-by: finga <finga@onders.org>
This commit is contained in:
fingaandfinga authored and GitHub committed 2021-10-06 15:36:24 -05:00
1 parent 21a784e94a
commit 67bc04fe21
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ func Notices(page, pageSize int) ([]*Notice, error) {
notices := make([]*Notice, 0, pageSize)
return notices, db.GetEngine(db.DefaultContext).
Limit(pageSize, (page-1)*pageSize).
Desc("id").
Desc("created_unix").
Find(&notices)
}