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

@ -543,8 +543,9 @@ class UsersController extends Controller
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/users/message.inventorynotification.error')));
}
return response()->Helper::formatStandardApiResponse('success', null, trans('admin/users/message.inventorynotification.success'));
$user->notify((new CurrentInventory($user)));
return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/users/message.inventorynotification.success')));
}
/**