Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Dec 1, 2024
1 parent 814d3e2 commit 233133b
Show file tree
Hide file tree
Showing 9 changed files with 228 additions and 176 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: cd ${{ env.APP_NAME }} && make appstore

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}.tar.gz
path: ${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}.tar.gz
392 changes: 220 additions & 172 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ProcessFileJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function run($argument) : void {
$this->ocrService->runOcrProcess($fileId, $uid, $settings);
} catch (\Throwable $ex) {
$this->logger->error($ex->getMessage(), ['exception' => $ex]);
$this->notificationService->createErrorNotification($uid, 'An error occured while executing the OCR process ('.$ex->getMessage().'). Please have a look at your servers logfile for more details.');
$this->notificationService->createErrorNotification($uid, 'An error occured while executing the OCR process (' . $ex->getMessage() . '). Please have a look at your servers logfile for more details.');
}

$this->logger->debug('ENDED -- Run ' . self::class . ' job. Argument: {argument}.', ['argument' => $argument]);
Expand Down
2 changes: 1 addition & 1 deletion lib/Listener/RegisterFlowOperationsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function handle(Event $event): void {
$event->registerOperation($this->container->get(Operation::class));

// Register webpack bundled script 'js/workflow_ocr-main.js'
Util::addScript(Application::APP_NAME, Application::APP_NAME. '-main');
Util::addScript(Application::APP_NAME, Application::APP_NAME . '-main');
}
}
1 change: 1 addition & 0 deletions tests/Integration/AppTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @copyright Copyright (c) 2020 Robin Windey <[email protected]>
*
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/Notification/AppFake.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @copyright Copyright (c) 2023 Robin Windey <[email protected]>
*
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/Notification/NotificationTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @copyright Copyright (c) 2023 Robin Windey <[email protected]>
*
Expand Down
1 change: 1 addition & 0 deletions tests/TestUtils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Nextcloud - Files_PhotoSpheres
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/OcrProcessors/PdfOcrProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function testRemoveBackgroundIsNotAppliedIfOcrModeIsRedoOcr() {
}));

$processor = new PdfOcrProcessor($this->command, $this->logger, $this->sidecarFileAccessor);
$processor->ocrFile($this->fileBefore, new WorkflowSettings('{"ocrMode": ' . WorkflowSettings::OCR_MODE_REDO_OCR .', "removeBackground": true}'), $this->defaultGlobalSettings);
$processor->ocrFile($this->fileBefore, new WorkflowSettings('{"ocrMode": ' . WorkflowSettings::OCR_MODE_REDO_OCR . ', "removeBackground": true}'), $this->defaultGlobalSettings);
}

public function dataProvider_testAppliesOcrModeParameter() {
Expand Down

0 comments on commit 233133b

Please sign in to comment.