fix(notify): waha: tighten response check

This commit is contained in:
Achmad Alif Nasrulloh 2026-07-11 18:42:53 +07:00 committed by neil
parent 237f2d9c3b
commit d45b6fe8e6

View file

@ -65,7 +65,7 @@ waha_send() {
_waha_url="${WAHA_URL}/api/sendText"
response="$(_post "$_data" "$_waha_url" "" "POST" "application/json")"
if [ "$?" = "0" ] && _contains "$response" "id"; then
if [ "$?" = "0" ] && _contains "$response" "\"id\""; then
_info "waha send success."
return 0
fi