diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-18 17:00:33 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-18 17:00:33 +0000 |
| commit | 89c0c4f609bd3232a4374fd0b8fbba233d5273fd (patch) | |
| tree | c6e99d9927b487c786cba01709817a0aaee504fa /src | |
| parent | d6490fe2887d96651d25a16d773d8fbefee073a8 (diff) | |
Fix order for models
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/model.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/model.rs b/src/models/model.rs index 828dfc2..aed7b3a 100644 --- a/src/models/model.rs +++ b/src/models/model.rs @@ -157,6 +157,7 @@ impl Model { JOIN users ON users.id = models.author_id LEFT JOIN uploads ON uploads.model_id = models.id GROUP BY models.id, users.id + ORDER BY id DESC LIMIT $1 OFFSET $2 "#) .bind(CONFIG.page_limit) |
