server: sort search results

pull/52/head
Max Leiter 5 years ago
parent a61f2c00e2
commit bb893fa6ba
No known key found for this signature in database
GPG Key ID: A3512F2F2F17EBDA

@ -169,7 +169,9 @@ posts.get("/search",
as: "files",
attributes: ["id", "title"]
}
]
],
attributes: ["id", "title", "visibility", "createdAt"],
order: [["createdAt", "DESC"]]
})
res.json(posts)

Loading…
Cancel
Save