remove legacy pdf path

This commit is contained in:
Yisroel Baum 2026-06-20 22:50:10 +03:00
parent 28f4114def
commit b280475314
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 2 additions and 65 deletions

View file

@ -72,7 +72,6 @@ class ElementController
richText: $this->stringInput($request, 'richText'),
shortPdfPath: $this->stringInput($request, 'shortPdfPath'),
longPdfPath: $this->stringInput($request, 'longPdfPath'),
pdfPath: $this->stringInput($request, 'pdfPath'),
youtubeUrl: $this->stringInput($request, 'youtubeUrl'),
fileType: $this->stringInput($request, 'fileType'),
fileContents: $file['contents'],
@ -176,7 +175,6 @@ class ElementController
* richText: string,
* shortPdfPath: string|null,
* longPdfPath: string|null,
* pdfPath: string|null,
* youtubeUrl: string|null,
* }
*/
@ -199,10 +197,6 @@ class ElementController
$element->getLongPdfPath(),
'element-pdfs/',
),
'pdfPath' => $this->storageUrl(
$element->getShortPdfPath(),
'element-pdfs/',
),
'youtubeUrl' => $element->getYoutubeUrl(),
];
}

View file

@ -46,7 +46,6 @@ class UpdateElement
&& $request->richText === null
&& $request->shortPdfPath === null
&& $request->longPdfPath === null
&& $request->pdfPath === null
&& $request->youtubeUrl === null
&& $request->fileType === null
&& $request->fileContents === null
@ -88,11 +87,6 @@ class UpdateElement
id: $request->id,
shortPdfPath: $request->shortPdfPath,
));
} elseif ($request->pdfPath !== null) {
$this->updateShortPdfPath->execute(new UpdateShortPdfPathRequest(
id: $request->id,
shortPdfPath: $request->pdfPath,
));
}
if ($request->longPdfPath !== null) {
$this->updateLongPdfPath->execute(new UpdateLongPdfPathRequest(

View file

@ -12,7 +12,6 @@ class UpdateElementRequest
public ?string $richText,
public ?string $shortPdfPath,
public ?string $longPdfPath,
public ?string $pdfPath,
public ?string $youtubeUrl,
public ?string $fileType,
public ?string $fileContents,