Bedarfsausweis ausstellen - cleanup

This commit is contained in:
Carl Mahnke
2025-04-24 16:56:52 +02:00
parent f17a8a6481
commit e535cdaeba
2 changed files with 1 additions and 3 deletions

View File

@@ -339,7 +339,7 @@ export async function getLexOfficeRechnung(rechnung: Rechnung) {
})
if (fileRequest.status !== 200) {
throw new Error("File request hat nicht funktioniert." + rechnung.lex_office_id + "/" + file_id)
throw new Error("File request hat nicht funktioniert.")
}
const file = await fileRequest.arrayBuffer()

View File

@@ -157,11 +157,9 @@ export const POST = defineApiRoute({
if (pdfRechnung && !pdfRechnungError) {
pdfSource = 'S3';
console.log('PDF from S3');
} else {
[pdfRechnung, pdfRechnungError] = await tryCatch(getLexOfficeRechnung(rechnung));
pdfSource = 'LexOffice';
console.log('PDF from LexOffice');
}
if (pdfRechnungError) {