Skip to content

Commit

Permalink
Merge branch 'hotfix/2.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Bolat committed Mar 1, 2024
2 parents 04588c2 + 5bcb9be commit 536610e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.3.3 (March 01, 2024)
- Fix read tasks bug

## 2.3.2 (March 01, 2024)
- Fix an inactive task to process

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.2
2.3.3
11 changes: 11 additions & 0 deletions src/Service/ScheduledTaskService.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ public function create(
return $scheduledTask;
}

public function read(string $id): ScheduledTask
{
$scheduledTask = $this->repository->find($id);

if (!$scheduledTask instanceof ScheduledTask) {
throw new NotFoundHttpException(sprintf('The task by id "%s" is not found', $id));
}

return $scheduledTask;
}

public function update(
$id,
$name,
Expand Down

0 comments on commit 536610e

Please sign in to comment.