fix /bookmarks not returning bookmarks in desc
This commit is contained in:
@@ -92,7 +92,7 @@ function findBookmarks(
|
|||||||
type ParamType = (string | number)[]
|
type ParamType = (string | number)[]
|
||||||
|
|
||||||
if (tagIds.length === 0) {
|
if (tagIds.length === 0) {
|
||||||
let query = `SELECT id, title, url FROM bookmarks WHERE user_id = ?${ids.length > 0 ? `AND id IN (${Array(ids.length).fill("?").join(",")})` : ""}`
|
let query = `SELECT id, title, url FROM bookmarks WHERE user_id = ?${ids.length > 0 ? ` AND id IN (${Array(ids.length).fill("?").join(",")})` : ""} ORDER BY id DESC`
|
||||||
if (limit) {
|
if (limit) {
|
||||||
query += " LIMIT ?"
|
query += " LIMIT ?"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user