1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-14 06:38:24 +09:00

Use limit() instead of take() because take() produces needless DISTINCT (#72)

This commit is contained in:
KOBA789 2023-03-18 11:10:06 +09:00 committed by GitHub
parent 8249819a6e
commit 8a02b806c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
}
//#endregion
const timeline = await query.take(ps.limit).getMany();
const timeline = await query.limit(ps.limit).getMany();
process.nextTick(() => {
this.activeUsersChart.read(me);