Skip to content

Commit ea554bf

Browse files
Fix trait
1 parent dc993a6 commit ea554bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/RecordsActivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function recordActivity($event)
2929
'subject_type' => get_class($this),
3030
'name' => $this->getActivityName($this, $event),
3131
'user_id' => isset(Auth::user()->id) ? Auth::user()->id : $this->user_id,
32-
'team_id' => Auth::user()->getTeam()->id ?? 1,
32+
'team_id' => Auth::user() ? Auth::user()->getTeam()->id : 1,
3333
]);
3434
}
3535

0 commit comments

Comments
 (0)