mirror of
https://github.com/JGH0/Todo-App-Backend.git
synced 2026-06-03 13:28:47 +02:00
added loging
This commit is contained in:
@@ -21,7 +21,7 @@ class ActivityLogController extends BaseController
|
||||
public function index()
|
||||
{
|
||||
$userId = $this->getUserId();
|
||||
$limit = $this->request->getVar('limit') ?? 50;
|
||||
$limit = (int)($this->request->getVar('limit') ?? 50);
|
||||
$logs = $this->activityLogModel->getByUser($userId, $limit);
|
||||
|
||||
return $this->successResponse($logs, 'Activity logs retrieved successfully');
|
||||
|
||||
Reference in New Issue
Block a user