history, new History($now->format('c'), RequestAction::Prayed)); $patch = ['history' => $req->history]; if ($req->recurrence->period <> RecurrencePeriod::Immediate) { $patch['showAfter'] = $now->add($req->recurrence->interval())->format('c'); } Patch::byId(Table::REQUEST, $req->id, $patch); Component::journal();