mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 08:28:18 +00:00
order by clause (not tested)
This commit is contained in:
1 parent
adf3741d85
commit
be40729ee8
1 file changed
+6
@@ -346,6 +346,12 @@ LEFT OUTER JOIN users
|
||||
}
|
||||
}
|
||||
|
||||
if sort_ascending {
|
||||
query.push_str(" ORDER BY tts_results.id ASC ");
|
||||
} else {
|
||||
query.push_str(" ORDER BY tts_results.id DESC ");
|
||||
}
|
||||
|
||||
query.push_str(" LIMIT ? ");
|
||||
|
||||
let mut query = sqlx::query_as::<_, RawInternalTtsRecord>(&query);
|
||||
|
||||
Reference in new issue
Block a user