Model/ResourceModel/Catalog.php
public function setModified($ids)
    {
        $write     = $this->getConnection();
        $tableName = $this->getTable(Schema::EMAIL_CATALOG_TABLE);
        $write->update(
            $tableName,
            ['modified' => 1],
            [
                $write->quoteInto("product_id IN (?)", $ids),
                $write->quoteInto("imported = ?", 1)
            ]
        );
    }
public function setModified($ids)
    {
        $write     = $this->getConnection();
        $tableName = $this->getTable(Schema::EMAIL_CATALOG_TABLE);
        $write->update(
            $tableName,
            ['modified' => 1],
            [
                $write->quoteInto("product_id IN (?)", $ids),
                $write->quoteInto("imported = ?", 1)
            ]
        );
    }
public function setModified ( $ ids ) { $ write = $ this -> getConnection ( ) ; $ tableName = $ this -> getTable ( Schema :: EMAIL_CATALOG_TABLE ) ; $ write -> update ( $ tableName , [ 'modified' => 1 ] , [ $ write -> quoteInto ( "product_id IN (?)" , $ ids ) , $ write -> quoteInto ( "imported = ?" , 1 ) ] ) ; }
Set modified if already imported

@param array $ids
Set modified if already imported