FIX - role name
This commit is contained in:
parent
e9ada6f2b3
commit
6bffd31f2f
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\DAL;
|
||||
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Services\UserService;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
@ -33,7 +34,7 @@ public static function worklist_stats(int $days, int $report_status)
|
||||
GROUP BY
|
||||
sa.user_id) AS cte ON cte.user_id = users."id"
|
||||
WHERE
|
||||
roles."name" = 'radiologist'
|
||||
roles."name" = '%s'
|
||||
AND users.is_active = TRUE
|
||||
GROUP BY
|
||||
users."id",
|
||||
@ -42,7 +43,7 @@ public static function worklist_stats(int $days, int $report_status)
|
||||
users.display_name
|
||||
SQL;
|
||||
|
||||
$rows = DB::select(sprintf($sql, $days, $report_status));
|
||||
$rows = DB::select(sprintf($sql, $days, $report_status, Role::Radiologist));
|
||||
foreach ($rows as $row) {
|
||||
$row->last_seen = UserService::getLastSeen((int) $row->id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user