fix(notify): waha: tighten response check

This commit is contained in:
Achmad Alif Nasrulloh
2026-07-12 16:07:33 +08:00
committed by neil
Unverified
parent 237f2d9c3b
commit d45b6fe8e6
+1 -1
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