Update Post\Delete() for editor_id

This commit is contained in:
Visman 2020-11-01 20:23:15 +07:00
parent 9b4b6b5607
commit 29c5b78aab

View file

@ -93,11 +93,23 @@ class Delete extends Action
WHERE poster_id IN (?ai:users)';
$this->c->DB->exec($query, $vars);
$query = 'UPDATE ::posts
SET editor_id=1
WHERE editor_id IN (?ai:users)';
$this->c->DB->exec($query, $vars);
}
if ($usersDel) {
$vars = [
':users' => $usersDel,
];
$query = 'UPDATE ::posts
SET editor_id=1
WHERE editor_id IN (?ai:users)';
$this->c->DB->exec($query, $vars);
$query = 'SELECT p.topic_id
FROM ::posts as p
WHERE p.poster_id IN (?ai:users)