Custom processor to set units available from total units on new project rewards

This commit is contained in:
2024-12-16 13:35:20 +01:00
parent fe905533e0
commit 5e11cd4a95
3 changed files with 40 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class ProjectStateProcessor implements ProcessorInterface
/** @var Project */
$project = $this->autoMapper->map($data, Project::class);
if (!isset($data->id)) {
if (!$project->getId()) {
$owner = $this->authService->getUser();
if (!$owner) {