Skip to content

Commit

Permalink
run notification method when status is >=3, php-scheduler update
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aebischer committed Dec 8, 2022
1 parent d6b72f9 commit 3e17d21
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.2.2-beta2
**Maintainer**: Sandro Aebischer <aebischer@gyselroth.com>\
**Date**: Thu Dez 08 18:45:00 CEST 2022

### Bugfix
* Run notification method when status is >=3
* Updated to new php-scheduler version (v4.0.15-beta1)

## 2.2.2-beta1
**Maintainer**: Sandro Aebischer <aebischer@gyselroth.com>\
**Date**: Fri Dez 02 16:15:00 CEST 2022
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"mongodb/mongodb": "1.4.*",
"ulrichsg/getopt-php": "^3.0",
"zendframework/zend-mail": "2.9.*",
"gyselroth/mongodb-php-task-scheduler": "^4.0.14",
"gyselroth/mongodb-php-task-scheduler": "^4.0.15-beta1",
"hassankhan/config": "^2.0.0",
"symfony/yaml": "~3.1",
"monolog/monolog": "^2.0.0-beta1",
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/Async/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getTimestamp(): ?UTCDateTime

public function notification(int $status, array $job): void
{
if ($this->checkReceiver($job['data'], $job['_id'])) {
if ($status >= 3 && $this->checkReceiver($job['data'], $job['_id'])) {
$namespace = $job['data']['namespace'];
$collections = implode(', ', $this->getArrayDataByKey($job['data'], 'collections'));
$endpoints = implode(', ', $this->getArrayDataByKey($job['data'], 'endpoints'));
Expand Down

0 comments on commit 3e17d21

Please sign in to comment.