feat: add Agrarmonitor correspondent sync
Build and Push Multi-Platform Images / build-and-push (push) Successful in 39s

- Extract getOrCreateCorrespondent helper to deduplicate logic
- Add syncCorrespondentIds to match Paperless correspondents to
  Agrarmonitor IDs via Lieferantennummer and persist in CorrespondentSetting
- New POST /api/agrarmonitor/sync-correspondents endpoint
- "Agrarmonitor-Abgleich" button in Correspondents settings tab

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 14:01:33 +02:00
parent bbdaf19fff
commit b4fe5a336c
5 changed files with 103 additions and 39 deletions
@@ -49,4 +49,11 @@ export class AgrarmonitorController {
async processUploads() {
return this.pollingService.processVerarbeiteteDocuments();
}
@Post('sync-correspondents')
@HttpCode(200)
@RequirePermissions(Permission.MANAGE_SETTINGS)
async syncCorrespondents() {
return this.pollingService.syncCorrespondentIds();
}
}