chuni: limit response size of getUserActivity

This commit is contained in:
seika1 2020-11-08 23:54:28 -08:00
parent b3395334a3
commit 87d83c5cee

View File

@ -29,7 +29,8 @@ export class SqlUserActivityRepository implements UserActivityRepository {
.from("cm_user_activity")
.where("profile_id", profileId)
.where("kind", kind)
.orderBy("sort_number DESC");
.orderBy("sort_number DESC")
.limit(100);
const rows = await this._txn.fetchRows(stmt);