29 parent::__construct(
'userEditCountInit',
$params );
30 $this->removeDuplicates =
true;
34 public function run() {
37 $dbw->newUpdateQueryBuilder()
39 ->set( [
'user_editcount' => $this->params[
'editCount'] ] )
41 'user_id' => $this->params[
'userId'],
42 $dbw->expr(
'user_editcount',
'=',
null )->or(
'user_editcount',
'<', $this->params[
'editCount'] )
44 ->caller( __METHOD__ )