Merge pull request #12435 from lukasfehling/bugfix/fixed-endpoint-for-user-notification

Fixed the endpoint for user notification with all their assigned assets
This commit is contained in:
snipe 2023-01-31 12:41:47 -08:00 committed by GitHub
commit a2a078015f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')));
}
/**