mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:33:08 +02:00
enhance(server): tweak notes/featured api
This commit is contained in:
parent
31f9ea31b9
commit
2b884ba338
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,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(50)
|
.take(100)
|
||||||
.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 a new issue