From 6eca1a3c5e59bfff2871d617643228951d0fb2f3 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 12 Nov 2022 09:32:53 +0800 Subject: [PATCH] fix(web/group): limit of UOJGroup::getLatestGroupmatesAcceptedSubmissionIds() --- web/app/models/UOJGroup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/models/UOJGroup.php b/web/app/models/UOJGroup.php index 3a7ba28..80f6ad1 100644 --- a/web/app/models/UOJGroup.php +++ b/web/app/models/UOJGroup.php @@ -97,6 +97,7 @@ class UOJGroup { ], "group by problem_id", "order by id desc", + DB::limit($limit), ])); }