Merge branch '394-warranty-expiration-sms-reminder' into 'master'

Have sms search for message_id instead of id #394

Closes #394

See merge request jankstudio/resq!444
This commit is contained in:
Kendrick Chan 2020-05-03 15:03:25 +00:00
commit 6abd8cacae

View file

@ -27,7 +27,7 @@ class SMSController extends Controller
error_log(print_r($data, true));
// data has id?
if (!isset($data['id']))
if (!isset($data['message_id']))
{
error_log('SMSDR: no id sent');
$resp = new Response();
@ -48,7 +48,7 @@ class SMSController extends Controller
}
// find sms
$sms = $em->getRepository(SMSMessage::class)->find($data['id']);
$sms = $em->getRepository(SMSMessage::class)->find($data['message_id']);
if ($sms == null)
{
error_log('SMSDR: no sms found');