We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc993a6 commit ea554bfCopy full SHA for ea554bf
app/Models/RecordsActivity.php
@@ -29,7 +29,7 @@ public function recordActivity($event)
29
'subject_type' => get_class($this),
30
'name' => $this->getActivityName($this, $event),
31
'user_id' => isset(Auth::user()->id) ? Auth::user()->id : $this->user_id,
32
- 'team_id' => Auth::user()->getTeam()->id ?? 1,
+ 'team_id' => Auth::user() ? Auth::user()->getTeam()->id : 1,
33
]);
34
}
35
0 commit comments