WIP: Implement profile editing

This commit is contained in:
Björn Fromme committed 2023-10-02 12:39:52 +02:00
1 parent d776d37cd5
commit 953aa9c8e0
27 files changed
+598 -43

No files matched your search

@@ -92,7 +92,7 @@ class IndexController extends AbstractController
$upload = Upload::fromUploadDto($uploadSession->getUploads()->first(), $user, Upload::TYPE_PHOTO);
$teamer->setPhoto($upload);
$this->entityManager->flush();
$this->uploadHandler->moveUploadSessionFilesFromOrphanage('photo', $uploadSession);
$this->uploadHandler->moveUploadSessionFilesFromOrphanage(Upload::TYPE_PHOTO, $uploadSession);
$this->uploadHandler->destroyUploadSession();
$this->addFlash('success', 'Dein Profilbild wurde aktualisiert');