Revert "fix: resolve all ESLint errors in backend and frontend"
Build and Push Multi-Platform Images / build-and-push (push) Successful in 19s

This reverts commit 07dfd7e840.
This commit is contained in:
2026-06-16 16:19:11 +02:00
parent 14c11bf718
commit 66aeab282c
43 changed files with 204 additions and 399 deletions
+4 -5
View File
@@ -19,7 +19,6 @@ import {
} from '../database/entities/inbox-document.entity';
import { MailService } from '../postprocessing/mail.service';
import { buildSegmentBuffer } from '../inbox-postprocessor/edit-applier';
import { getErrorMessage } from '../common/error.util';
export interface InboxFile {
id: string;
@@ -100,9 +99,9 @@ export class InboxService {
try {
const stat = await fs.stat(pdfPath);
if (!stat.isFile()) throw new Error('not a file');
} catch (err: unknown) {
} catch (err: any) {
this.logger.warn(
`Datei fehlt trotz DB-Eintrag (${doc.Id}): ${getErrorMessage(err)}`,
`Datei fehlt trotz DB-Eintrag (${doc.Id}): ${err.message}`,
);
throw new NotFoundException('Dokument nicht gefunden');
}
@@ -219,9 +218,9 @@ export class InboxService {
await this.documentRepo.delete(doc.Id);
try {
await fs.rm(dir, { recursive: true, force: true });
} catch (err: unknown) {
} catch (err: any) {
this.logger.warn(
`Dokument-Ordner konnte nicht gelöscht werden (${dir}): ${getErrorMessage(err)}`,
`Dokument-Ordner konnte nicht gelöscht werden (${dir}): ${err.message}`,
);
}
}