Merge pull request 'fix error' (#76) from Sprint-4/MS-37-FE-Evaluation into master

Reviewed-on: #76
This commit is contained in:
vincent.vo 2024-09-21 14:21:37 +10:00
commit ffe51046b6
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class TechnicalController extends Controller
->orderBy('point', 'desc')
->get();
if ($technicals->isEmpty()) {
return AbstractController::ResultError("No technicals found for this user.");
return [];
}
// Chuẩn bị dữ liệu để trả về