rename upload use cases

This commit is contained in:
Yisroel Baum 2026-06-02 16:38:59 +03:00
parent bd38e350cf
commit d0810ba4b3
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 12 additions and 12 deletions

View file

@ -16,8 +16,8 @@ class UpdateElement
private UpdateRichText $updateRichText,
private UpdatePdfPath $updatePdfPath,
private UpdateYoutubeUrl $updateYoutubeUrl,
private UpdateElementIconImage $updateElementIconImage,
private UpdateElementPdf $updateElementPdf,
private UpdateIconImage $updateIconImage,
private UpdatePdf $updatePdf,
private ElementRepository $elementRepository,
) {
}
@ -83,8 +83,8 @@ class UpdateElement
));
}
if ($request->iconImageContents !== null) {
$this->updateElementIconImage->execute(
new UpdateElementIconImageRequest(
$this->updateIconImage->execute(
new UpdateIconImageRequest(
id: $request->id,
iconImageContents: $request->iconImageContents,
iconImageOriginalName: $request->iconImageOriginalName,
@ -94,8 +94,8 @@ class UpdateElement
);
}
if ($request->pdfContents !== null) {
$this->updateElementPdf->execute(
new UpdateElementPdfRequest(
$this->updatePdf->execute(
new UpdatePdfRequest(
id: $request->id,
pdfContents: $request->pdfContents,
pdfOriginalName: $request->pdfOriginalName,