Skip to content
Snippets Groups Projects
Commit 2b884ba3 authored by syuilo's avatar syuilo
Browse files

enhance(server): tweak notes/featured api

parent 31f9ea31
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
let notes = await query
.orderBy('note.score', 'DESC')
.take(50)
.take(100)
.getMany();
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment