Model/ResourceModel/Automation.php
public function updateStatus($contactIds, $status, $message, $updatedAt, $type)
    {
        $bind = [
            'enrolment_status' => $status,
            'message' => $message,
            'updated_at' => $updatedAt,
        ];
        $where = ['id IN(?)' => $contactIds];
        $num = $this->getConnection()->update(
            $this->getTable(Schema::EMAIL_AUTOMATION_TABLE),
            $bind,
            $where
        );
        //number of updated records
        if ($num) {
            $this->helper->log(
                'Automation type : ' . $type . ', updated : ' . $num
            );
        }
    }
public function updateStatus($contactIds, $status, $message, $updatedAt, $type)
    {
        $bind = [
            'enrolment_status' => $status,
            'message' => $message,
            'updated_at' => $updatedAt,
        ];
        $where = ['id IN(?)' => $contactIds];
        $num = $this->getConnection()->update(
            $this->getTable(Schema::EMAIL_AUTOMATION_TABLE),
            $bind,
            $where
        );
        //number of updated records
        if ($num) {
            $this->helper->log(
                'Automation type : ' . $type . ', updated : ' . $num
            );
        }
    }
public function updateStatus ( $ contactIds , $ status , $ message , $ updatedAt , $ type ) { $ bind = [ 'enrolment_status' => $ status , 'message' => $ message , 'updated_at' => $ updatedAt , ] ; $ where = [ 'id IN(?)' => $ contactIds ] ; $ num = $ this -> getConnection ( ) -> update ( $ this -> getTable ( Schema :: EMAIL_AUTOMATION_TABLE ) , $ bind , $ where ) ; //number of updated records if ( $ num ) { $ this -> helper -> log ( 'Automation type : ' . $ type . ', updated : ' . $ num ) ; } }
update status for automation entries

@param array $contactIds
@param string $status
@param string $message
@param string $updatedAt
@param string $type

@return null
update status for automation entries