feat: add manual Paperless ID synchronization for email attachments and update default barcode margins to 7mm.
Build and Push Multi-Platform Images / build-and-push (push) Successful in 36s

This commit is contained in:
2026-05-18 09:14:26 +02:00
parent 76ce4cf900
commit 11bed63bad
6 changed files with 78 additions and 34 deletions
@@ -229,6 +229,16 @@ export class PaperlessService {
return response.data.count > 0;
}
async getDocumentIdByChecksum(checksum: string): Promise<number | null> {
const response = await this.client.get('/documents/', {
params: { checksum__iexact: checksum },
});
if (response.data.count > 0 && response.data.results?.length > 0) {
return response.data.results[0].id as number;
}
return null;
}
/**
* Prüft, ob eine ASN bereits vergeben ist und wirft einen Fehler, falls ja.
*/