1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44:32 +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;

View File

@@ -179,7 +179,7 @@ class NotificationSyncer
array_map(function (User $user) use ($attributes, $now) {
return $attributes + [
'user_id' => $user->id,
'time' => $now
'created_at' => $now
];
}, $recipients)
);