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
Build and Push Multi-Platform Images / build-and-push (push) Successful in 36s
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user