fix(notify): waha: tighten response check
This commit is contained in:
committed by
neil
Unverified
parent
237f2d9c3b
commit
d45b6fe8e6
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user