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:
@@ -10,7 +10,6 @@ import {
|
||||
type InboxSource,
|
||||
type StoredQrCode,
|
||||
} from '../database/entities/inbox-document.entity';
|
||||
import { getErrorMessage, getErrorCode } from '../common/error.util';
|
||||
import { PageCacheService } from '../barcode/page-cache.service';
|
||||
|
||||
interface LegacyScanRow {
|
||||
@@ -42,10 +41,10 @@ export class InboxMigrationService implements OnApplicationBootstrap {
|
||||
withFileTypes: true,
|
||||
});
|
||||
subdirs = entries.filter((e) => e.isDirectory()).map((e) => e.name);
|
||||
} catch (err: unknown) {
|
||||
if (getErrorCode(err) !== 'ENOENT') {
|
||||
} catch (err: any) {
|
||||
if (err.code !== 'ENOENT') {
|
||||
this.logger.warn(
|
||||
`Migration: ${this.legacyRoot} nicht lesbar: ${getErrorMessage(err)}`,
|
||||
`Migration: ${this.legacyRoot} nicht lesbar: ${err.message}`,
|
||||
);
|
||||
}
|
||||
return;
|
||||
@@ -57,10 +56,8 @@ export class InboxMigrationService implements OnApplicationBootstrap {
|
||||
let files: string[];
|
||||
try {
|
||||
files = await fs.readdir(dir);
|
||||
} catch (err: unknown) {
|
||||
this.logger.warn(
|
||||
`Migration: ${dir} nicht lesbar: ${getErrorMessage(err)}`,
|
||||
);
|
||||
} catch (err: any) {
|
||||
this.logger.warn(`Migration: ${dir} nicht lesbar: ${err.message}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -70,9 +67,9 @@ export class InboxMigrationService implements OnApplicationBootstrap {
|
||||
try {
|
||||
await this.migrateFile(src, subdir, name);
|
||||
migrated += 1;
|
||||
} catch (err: unknown) {
|
||||
} catch (err: any) {
|
||||
this.logger.error(
|
||||
`Migration fehlgeschlagen (${src}): ${getErrorMessage(err)}`,
|
||||
`Migration fehlgeschlagen (${src}): ${err.message}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -119,8 +116,8 @@ export class InboxMigrationService implements OnApplicationBootstrap {
|
||||
try {
|
||||
await fs.rename(src, dest);
|
||||
return;
|
||||
} catch (err: unknown) {
|
||||
if (getErrorCode(err) !== 'EXDEV') throw err;
|
||||
} catch (err: any) {
|
||||
if (err.code !== 'EXDEV') throw err;
|
||||
}
|
||||
await fs.copyFile(src, dest);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user