Skip to content

Commit

Permalink
Merge pull request #10 from nextcloud/fix/7/sometimes-not-triggered
Browse files Browse the repository at this point in the history
fix running script often not triggered
  • Loading branch information
blizzz authored Mar 6, 2019
2 parents 4155758 + 13df48d commit 3a4eb7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<licence>agpl</licence>
<author mail="[email protected]">Arthur Schiwon</author>
<namespace>WorkflowScript</namespace>
<types>
<filesystem/>
</types>
<category>files</category>
<category>tools</category>
<category>organization</category>
Expand Down
2 changes: 1 addition & 1 deletion lib/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(IManager $workflowEngineManager, IJobList $jobList,

public function considerScript(Node $node, string $event, array $extra = []) {
try {
$this->workflowEngineManager->setFileInfo($node->getStorage(), $node->getPath());
$this->workflowEngineManager->setFileInfo($node->getStorage(), $node->getInternalPath());
$matches = $this->workflowEngineManager->getMatchingOperations(Operation::class, false);
foreach ($matches as $match) {
$command = $this->buildCommand($match['operation'], $node, $event, $extra);
Expand Down

0 comments on commit 3a4eb7c

Please sign in to comment.