fix: resolve E2E and unit test failures across tenant isolation and location endpoints

This commit is contained in:
ramram1515
2026-07-08 12:08:56 +08:00
parent 15caefa96a
commit 09b094bea7
14 changed files with 72 additions and 81 deletions

View File

@@ -24,7 +24,7 @@ class ScannerController extends ApiController
$user = $request->user();
$team = CollectionTeam::query()
->with(['driver', 'truck', 'helpers.user'])
->with(['driver', 'scanner', 'truck', 'helpers.user'])
->where('scanner_id', $user->id)
->where('status', CollectionTeam::STATUS_ACTIVE)
->first();