diff --git a/appinfo/app.php b/appinfo/app.php
index ee9bcb5..a5838cd 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -21,4 +21,4 @@
*
*/
-$app = new \OCA\WorkflowScript\AppInfo\Application();
+$app = \OC::$server->query(\OCA\WorkflowScript\AppInfo\Application::class);
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 9500f8d..882bea4 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,7 +5,7 @@
Workflow external scripts
Rule based processing of files through specified external scripts
Pass files on to external scripts depending on a defined set of rules.
- 1.3.0
+ 1.3.1
agpl
Arthur Schiwon
WorkflowScript
diff --git a/lib/Operation.php b/lib/Operation.php
index 3d4a9b0..3f1284c 100644
--- a/lib/Operation.php
+++ b/lib/Operation.php
@@ -202,7 +202,7 @@ public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatch
return;
}
- $matches = $ruleMatcher->getMatchingOperations(Operation::class, false);
+ $matches = $ruleMatcher->getFlows(false);
foreach ($matches as $match) {
$command = $this->buildCommand($match['operation'], $node, $eventName, $extra);
$args = ['command' => $command];