Fix some regresions

This commit is contained in:
Matias De lellis committed 2021-09-20 21:26:25 -03:00
1 parent 2d0d3fc975
commit eaa68be517
5 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -43,6 +43,7 @@ use OCA\QuickNotes\Db\TagMapper;
use OCA\QuickNotes\Service\FileService;
use OCA\QuickNotes\Service\SettingsService;
use OCP\AppFramework\Db\DoesNotExistException;
class NoteService {
@@ -408,7 +409,7 @@ class NoteService {
// Get Note and Color
try {
$note = $this->notemapper->find($id, $userId);
} catch(Exception $e) {
} catch(DoesNotExistException $e) {
return;
}
$oldcolorid = $note->getColorId();