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
@@ -3,7 +3,6 @@ import { ConfigService } from '@nestjs/config';
import * as path from 'path';
import * as fs from 'fs/promises';
import sharp from 'sharp';
import { getErrorMessage } from '../common/error.util';
const THUMBNAIL_WIDTH = 180;
@@ -55,9 +54,9 @@ export class PageCacheService {
.resize({ width: THUMBNAIL_WIDTH })
.png()
.toFile(thumbDest);
} catch (err: unknown) {
} catch (err: any) {
this.logger.warn(
`Seiten-Cache fehlgeschlagen (${documentId} Seite ${page}): ${getErrorMessage(err)}`,
`Seiten-Cache fehlgeschlagen (${documentId} Seite ${page}): ${err.message}`,
);
}
}
@@ -104,9 +103,9 @@ export class PageCacheService {
const to = path.join(dir, `page-${n - 1}.${variant}.png`);
try {
await fs.rename(from, to);
} catch (err: unknown) {
} catch (err: any) {
this.logger.warn(
`Cache-Shift fehlgeschlagen (${documentId} Seite ${n} ${variant}): ${getErrorMessage(err)}`,
`Cache-Shift fehlgeschlagen (${documentId} Seite ${n} ${variant}): ${err.message}`,
);
}
}