Update WindowOrDoorOpen.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Wed, 31 Jul 2019 00:45:59 +0000 (17:45 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Wed, 31 Jul 2019 00:45:59 +0000 (17:45 -0700)
third-party/WindowOrDoorOpen.groovy

index cea0a32..2bb4901 100755 (executable)
@@ -602,9 +602,9 @@ private send(msg) {
                sendPush(msg)
        }
 
-       if (phoneNumber) {
+       if (phone) {
                log.debug("sending text message")
-               sendSms(phoneNumber, msg)
+               sendSms(phone, msg)
        }
        log.debug msg
 }