chuni: limit response size of getUserActivity

This commit is contained in:
e76cd2ec3a63f11710dc9fa0bc5b66176521af0a
2020-11-08 23:54:28 -08:00
parent 4f5eb97309
commit 4fe69077fc

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);