chore(server): tweak notes/featured api

This commit is contained in:
syuilo 2023-02-19 17:50:14 +09:00
parent 0c59dd3da7
commit 7ce0f79f7f

View file

@ -68,7 +68,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
let notes = await query let notes = await query
.orderBy('note.score', 'DESC') .orderBy('note.score', 'DESC')
.take(ps.limit) .take(50)
.getMany(); .getMany();
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());