fix gitlab tests
This commit is contained in:
@@ -2,15 +2,13 @@
|
||||
|
||||
namespace App\Services\Parents;
|
||||
|
||||
use App\Controllers\ParentReportCardController;
|
||||
use App\Models\Student;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Maps the logged-in parent-family account to the primary parent's user id
|
||||
* (stored on {@see Student::$parent_id}), matching legacy
|
||||
* {@see ParentReportCardController::resolvePrimaryParentId}.
|
||||
* (stored on {@see \App\Models\Student::$parent_id}), matching legacy
|
||||
* {@see \App\Controllers\ParentReportCardController::resolvePrimaryParentId}.
|
||||
*/
|
||||
final class PrimaryParentUserResolver
|
||||
{
|
||||
@@ -24,7 +22,7 @@ final class PrimaryParentUserResolver
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $userId Session user id (may be secondary/tertiary login).
|
||||
* @param int $userId Session user id (may be secondary/tertiary login).
|
||||
*/
|
||||
public function resolveFromCredentials(int $userId, string $userType): ?int
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user