teams api update

This commit is contained in:
Čarodej
2022-05-04 10:17:36 +02:00
parent f9b762de43
commit 4250e58370
17 changed files with 139 additions and 64 deletions

View File

@@ -9,7 +9,7 @@ class FlushUserNotificationsController extends Controller
public function __invoke(): JsonResponse
{
$successMessage = [
'type' => 'success',
'type' => 'success',
'message' => 'All your notifications was deleted.',
];

View File

@@ -9,7 +9,7 @@ class MarkUserNotificationsAsReadController extends Controller
public function __invoke(): JsonResponse
{
$successMessage = [
'type' => 'success',
'type' => 'success',
'message' => 'All your notifications was marked as read.',
];
@@ -19,7 +19,7 @@ class MarkUserNotificationsAsReadController extends Controller
// Mark all notifications as read
auth()->user()->unreadNotifications()->update([
'read_at' => now()
'read_at' => now(),
]);
return response()->json($successMessage);