mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 19:25:10 -05:00
Fix missing correctet where query in InboxController list method like it is in count method.
This commit is contained in:
@@ -46,8 +46,10 @@ public function list(Request $request) {
|
||||
|
||||
/** @var InboxMessage[]|Collection|LengthAwarePaginator $messages */
|
||||
$messages = $user->inboxMessages()
|
||||
->where('expire_at', '>', Carbon::now())
|
||||
->orWhereNull('expire_at')
|
||||
->where(function ($query) {
|
||||
$query->where('expire_at', '>', Carbon::now())
|
||||
->orWhereNull('expire_at');
|
||||
})
|
||||
->paginate($limit);
|
||||
|
||||
$result = [
|
||||
|
||||
Reference in New Issue
Block a user