1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Fix some incorrect attribute names

This commit is contained in:
Toby Zerner
2018-07-21 17:19:15 +09:30
parent 4f259425b0
commit 7d0813bce4
7 changed files with 10 additions and 9 deletions

View File

@@ -11,6 +11,7 @@
namespace Flarum\Notification\Command;
use Carbon\Carbon;
use Flarum\Notification\Notification;
use Flarum\User\AssertPermissionTrait;
@@ -36,7 +37,7 @@ class ReadNotificationHandler
'type' => $notification->type,
'subject_id' => $notification->subject_id
])
->update(['is_read' => true]);
->update(['read_at' => Carbon::now()]);
$notification->is_read = true;