fixing various stuff

This commit is contained in:
2023-11-08 13:55:53 +02:00
parent d7afa5a322
commit 834715d773
6 changed files with 140 additions and 102 deletions
+2 -2
View File
@@ -68,9 +68,9 @@ class ImageService
return $this->notFoundImage;
}
$image->filter(new $this->channelService->channel->imageFilters[$template]);
$image = $image->filter(new $this->channelService->channel->imageFilters[$template]);
try {
$image->encode('webp', 75);
$image = $this->imageManager->make((string)$image->encode('webp', 75));
$image->save($templateFilePath);
} catch (Exception $e) {
$this->logger->error($e->getMessage());
+2 -2
View File
@@ -211,9 +211,9 @@ class RecordController extends Controller
->limit(1)
->skip(0)
->childrenDepth(2)
->childrenLimit(100)
->childrenLimit(200)
->parentsDepth(1)
->parentsLimit(100)
->parentsLimit(200)
->run();
if ($graph->records->isEmpty()) {
-1
View File
@@ -107,7 +107,6 @@ readonly class RecordService
bool $updateEdges = false
): void
{
$record = $this->query->filter(["id" => $id])->run()->records->first();
if (empty($record)) {