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:
@@ -65,8 +65,8 @@ export class DocumentPipelineService {
|
||||
}
|
||||
|
||||
// 3. OCR auf erster Seite
|
||||
// TODO: OCR-Ergebnis wird aktuell nicht gespeichert/weiterverwendet
|
||||
await this.ocrService.extractTextAsMarkdown(firstPageBuffer);
|
||||
const ocrMarkdown =
|
||||
await this.ocrService.extractTextAsMarkdown(firstPageBuffer);
|
||||
|
||||
// 4. Task in DB erstellen
|
||||
const year = new Date().getFullYear();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import axios from 'axios';
|
||||
import { getErrorMessage } from '../common/error.util';
|
||||
|
||||
@Injectable()
|
||||
export class OcrService {
|
||||
@@ -47,8 +46,8 @@ Antworte nur mit dem extrahierten Markdown-Text, keine Erklärungen.`;
|
||||
`OCR abgeschlossen: ${markdown.length} Zeichen extrahiert`,
|
||||
);
|
||||
return markdown;
|
||||
} catch (error: unknown) {
|
||||
this.logger.error(`Ollama OCR fehlgeschlagen: ${getErrorMessage(error)}`);
|
||||
} catch (error: any) {
|
||||
this.logger.error(`Ollama OCR fehlgeschlagen: ${error.message}`);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,9 +120,7 @@ export class PdfService {
|
||||
for (const imgPath of imagePaths) {
|
||||
try {
|
||||
await fs.unlink(imgPath);
|
||||
} catch {
|
||||
// Datei bereits entfernt o. Ä.: ignorieren
|
||||
}
|
||||
} catch {}
|
||||
dirs.add(path.dirname(imgPath));
|
||||
}
|
||||
for (const dir of dirs) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
import sharp from 'sharp';
|
||||
import sharp = require('sharp');
|
||||
import jsQR from 'jsqr';
|
||||
|
||||
export interface QrCodeResult {
|
||||
|
||||
Reference in New Issue
Block a user