Skip to content
Snippets Groups Projects
Commit 7ce0f79f authored by syuilo's avatar syuilo
Browse files

chore(server): tweak notes/featured api

parent 0c59dd3d
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
let notes = await query
.orderBy('note.score', 'DESC')
.take(ps.limit)
.take(50)
.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