Skip to content

A free open source IT asset/license management system

fixed the endpoint for user notification with all their assigned assets

lukasfehlingcddae4869fcc
diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php
index cca829c23f..9a9135a380 100644
--- a/app/Http/Controllers/Api/UsersController.php
+++ b/app/Http/Controllers/Api/UsersController.php
@@ -542,9 +542,10 @@ class UsersController extends Controller
if (empty($user->email)) {
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/users/message.inventorynotification.error')));
}
+
+ $user->notify((new CurrentInventory($user)));
- return response()->Helper::formatStandardApiResponse('success', null, trans('admin/users/message.inventorynotification.success'));
-
+ return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/users/message.inventorynotification.success')));
}
/**