chore(server): tweak notes/featured api
This commit is contained in:
parent
0c59dd3da7
commit
7ce0f79f7f
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user