chore: apply ESLint auto-fix across entire backend
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
Reformats code style (line breaks, indentation, type annotations) without changing logic. Also includes minor feature additions bundled in the same lint run (stats service, user-settings groups, agrarmonitor polling improvements). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,10 @@ export class OcrService {
|
||||
private readonly ollamaModel: string;
|
||||
|
||||
constructor(private readonly configService: ConfigService) {
|
||||
this.ollamaUrl = this.configService.get<string>('OLLAMA_URL', 'http://localhost:11434');
|
||||
this.ollamaUrl = this.configService.get<string>(
|
||||
'OLLAMA_URL',
|
||||
'http://localhost:11434',
|
||||
);
|
||||
this.ollamaModel = this.configService.get<string>('OLLAMA_MODEL', 'llava');
|
||||
}
|
||||
|
||||
@@ -39,7 +42,9 @@ Antworte nur mit dem extrahierten Markdown-Text, keine Erklärungen.`;
|
||||
);
|
||||
|
||||
const markdown = response.data.response?.trim() ?? '';
|
||||
this.logger.log(`OCR abgeschlossen: ${markdown.length} Zeichen extrahiert`);
|
||||
this.logger.log(
|
||||
`OCR abgeschlossen: ${markdown.length} Zeichen extrahiert`,
|
||||
);
|
||||
return markdown;
|
||||
} catch (error: any) {
|
||||
this.logger.error(`Ollama OCR fehlgeschlagen: ${error.message}`);
|
||||
|
||||
Reference in New Issue
Block a user