diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-04 19:06:33 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-04 19:06:33 +0000 |
| commit | f38ac2e547926a4a1400571b6548e79364905075 (patch) | |
| tree | 5a851cbfffcf8af5460c3eb53dcd16bdd0101607 /src/models | |
| parent | 29f51ee70801aa9ab3e5c759e17c566cf183c79d (diff) | |
Fix author' models
Diffstat (limited to 'src/models')
| -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 663f1b5..87e1997 100644 --- a/src/models/model.rs +++ b/src/models/model.rs @@ -301,6 +301,7 @@ impl Model { INNER JOIN model_author using (id) INNER JOIN model_uploads using (id) INNER JOIN model_likes using (id) + WHERE models.author_id = $1 ORDER BY id DESC LIMIT $2 OFFSET $3 "#) |
