m
This commit is contained in:
@@ -78,13 +78,12 @@ class UserController extends Controller
|
||||
// Send ChatOps notification from backend to avoid CORS issues
|
||||
$chatOpsUrl = config('constants.CHATOPS_API_URL');
|
||||
$chatOpsToken = config('constants.CHATOPS_API_TOKEN');
|
||||
$email = 'antv@runsystem.net';
|
||||
|
||||
if ($chatOpsUrl && $chatOpsToken) {
|
||||
if ($chatOpsUrl && $chatOpsToken && $receiverUser) {
|
||||
try {
|
||||
\Illuminate\Support\Facades\Http::timeout(5)->post($chatOpsUrl, [
|
||||
'message' => "💌 Bạn nhận được một Thank Card mới!\nNhanh chân đến khu vực nhận thư để nhận ngay nhé!",
|
||||
'userEmail' => $email,
|
||||
'userEmail' => $receiverUser->mail,
|
||||
'token' => $chatOpsToken,
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user