Revert "fix: resolve all ESLint errors in backend and frontend"
Build and Push Multi-Platform Images / build-and-push (push) Successful in 19s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 19s
This reverts commit 07dfd7e840.
This commit is contained in:
1 parent
14c11bf718
commit
66aeab282c
43 files changed
+204
-399
No files matched your search
@@ -4,7 +4,6 @@ import { Repository } from 'typeorm';
|
||||
import { ExportTarget } from '../database/entities/export-target.entity';
|
||||
import * as ftp from 'basic-ftp';
|
||||
import { createClient, type WebDAVClient } from 'webdav';
|
||||
import { getErrorMessage } from '../common/error.util';
|
||||
|
||||
@Injectable()
|
||||
export class ExportService {
|
||||
@@ -58,8 +57,8 @@ export class ExportService {
|
||||
};
|
||||
}
|
||||
return { success: true, message: 'Verbindung erfolgreich.' };
|
||||
} catch (err: unknown) {
|
||||
return { success: false, message: getErrorMessage(err) };
|
||||
} catch (err: any) {
|
||||
return { success: false, message: err.message };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ import { PaperlessService } from '../paperless/paperless.service';
|
||||
import { MailService } from './mail.service';
|
||||
import { ExportService } from './export.service';
|
||||
import axios from 'axios';
|
||||
import { getErrorMessage } from '../common/error.util';
|
||||
|
||||
const CACHE_TTL_MS = 5 * 60 * 1000;
|
||||
|
||||
@@ -92,18 +91,12 @@ export class PostprocessingService {
|
||||
'success',
|
||||
`Aktion ${action.ActionType} erfolgreich`,
|
||||
);
|
||||
} catch (err: unknown) {
|
||||
} catch (err: any) {
|
||||
hasError = true;
|
||||
this.logger.error(
|
||||
`Fehler bei Aktion ${action.Id} (Typ ${action.ActionType}) für Dokument ${doc.id}: ${getErrorMessage(err)}`,
|
||||
);
|
||||
await this.log(
|
||||
rule.Id,
|
||||
action.Id,
|
||||
doc.id,
|
||||
'error',
|
||||
getErrorMessage(err),
|
||||
`Fehler bei Aktion ${action.Id} (Typ ${action.ActionType}) für Dokument ${doc.id}: ${err.message}`,
|
||||
);
|
||||
await this.log(rule.Id, action.Id, doc.id, 'error', err.message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,9 +107,9 @@ export class PostprocessingService {
|
||||
await this.paperlessService.updateDocument(doc.id, {
|
||||
tags: Array.from(currentTags),
|
||||
});
|
||||
} catch (tagErr: unknown) {
|
||||
} catch (tagErr: any) {
|
||||
this.logger.error(
|
||||
`Konnte Error-Tag ${this.errorTagId} nicht setzen für Dokument ${doc.id}: ${getErrorMessage(tagErr)}`,
|
||||
`Konnte Error-Tag ${this.errorTagId} nicht setzen für Dokument ${doc.id}: ${tagErr.message}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -320,8 +313,8 @@ export class PostprocessingService {
|
||||
const dt = docTypes.find((x: any) => x.id === doc.document_type);
|
||||
doc._documentTypeName = dt?.name ?? '';
|
||||
}
|
||||
} catch (err: unknown) {
|
||||
this.logger.warn(`Konnte Namen nicht auflösen: ${getErrorMessage(err)}`);
|
||||
} catch (err: any) {
|
||||
this.logger.warn(`Konnte Namen nicht auflösen: ${err.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user