changed timebasedfieldupdated back

This commit is contained in:
naomi 2022-05-27 09:52:56 +01:00
parent a228ea5554
commit a4aa8444e3

View File

@ -31,7 +31,9 @@ final class TimeBasedFieldUpdater {
$query = $this->entityTypeManager->getStorage($this->entity_type)->getQuery();
$conditions[] = [$this->date_field, date($this->date_format, strtotime('-'.$time_elapsed)), "<"];
$conditions[] = ['type', $this->bundle, '='];
$this->utils->addConditionsToQuery($query, $conditions);
foreach ($conditions as $condition) {
$query->condition($condition);
}
foreach($query->execute() as $id) {
$this->updateEntity($id, $new_values);
}