Skip to content

Commit

Permalink
Merge pull request #50 from eldertek/nightly
Browse files Browse the repository at this point in the history
v1.1.7
  • Loading branch information
eldertek authored Feb 20, 2024
2 parents 541cb31 + 573f5cb commit 1db76cf
Show file tree
Hide file tree
Showing 19 changed files with 711 additions and 559 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.7 - 2024-02-20
### Fixed
- Refactor the code to use components

## 1.1.6 - 2024-02-17
### Fixed
- Fix an issue where the same duplicate was displayed multiple times
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<summary lang="fr">Économisez de l’espace en trouvant vos fichiers en doublon</summary>
<description>Are you tired of sifting through piles of files and folders, only to discover multiple copies of the same content cluttering your storage space?</description>
<description lang="fr">Vous en avez assez de passer au crible des piles de fichiers et de dossiers pour découvrir que plusieurs copies du même contenu encombrent votre espace de stockage ?</description>
<version>1.1.6</version>
<version>1.1.7</version>
<licence>agpl</licence>
<author mail="[email protected]" >André Théo LAURET</author>
<namespace>DuplicateFinder</namespace>
Expand Down
2 changes: 1 addition & 1 deletion js/duplicatefinder-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/duplicatefinder-settings.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/BackgroundJob/CleanUpDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use OCA\DuplicateFinder\Service\FileInfoService;
use OCA\DuplicateFinder\Service\FolderService;
use OCP\Files\NotFoundException;
use OC\BackgroundJob\TimedJob;
use OCP\BackgroundJob\TimedJob;
use Psr\Log\LoggerInterface;
class CleanUpDB extends TimedJob
{
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJob/FindDuplicates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use OCP\IDBConnection;
use OCP\IUser;
use OCP\IUserManager;
use OC\BackgroundJob\TimedJob;
use OCP\BackgroundJob\TimedJob;
use Psr\Log\LoggerInterface;

class FindDuplicates extends TimedJob
Expand Down
7 changes: 4 additions & 3 deletions lib/Controller/AbstractAPIController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace OCA\DuplicateFinder\Controller;

use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -61,13 +62,13 @@ protected function getUserId(): string
* @param \Exception $e The exception to handle.
* @return JSONResponse The JSON response.
*/
protected function handleException(\Exception $e): JSONResponse
protected function handleException(\Exception $e): DataResponse
{
if ($e instanceof NotAuthenticatedException) {
return $this->error($e, Http::STATUS_FORBIDDEN);
return new DataResponse(['status' => 'error', 'message' => 'Not authenticated'], Http::STATUS_UNAUTHORIZED);
}
$this->logger->error('An unknown exception occurred', ['app' => Application::ID, 'exception' => $e]);
return $this->error($e, Http::STATUS_NOT_IMPLEMENTED);
return new DataResponse(['status' => 'error', 'message' => 'An unknown exception occurred'], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "duplicatefinder",
"description": "Save some space by finding your duplicate files",
"version": "1.1.6",
"version": "1.1.7",
"author": "André Théo LAURET <[email protected]>",
"contributors": [],
"bugs": {
Expand Down
Loading

0 comments on commit 1db76cf

Please sign in to comment.