summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-04 19:06:33 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-04 19:06:33 +0000
commitf38ac2e547926a4a1400571b6548e79364905075 (patch)
tree5a851cbfffcf8af5460c3eb53dcd16bdd0101607
parent29f51ee70801aa9ab3e5c759e17c566cf183c79d (diff)
Fix author' models
-rw-r--r--src/models/model.rs1
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
"#)