KI-AGENT: Migration für Dokumentenimporte aktivieren
All checks were successful
Build and Push Docker Images / build-central-services-api (push) Successful in 34s
Build and Push Docker Images / build-docs (push) Successful in 34s
Build and Push Docker Images / build-backend (push) Successful in 58s
Build and Push Docker Images / build-frontend (push) Successful in 1m59s
Build and Push Docker Images / build-website (push) Successful in 34s
Build and Push Docker Images / build-central-services-admin (push) Successful in 34s

This commit is contained in:
2026-08-07 21:23:52 +02:00
parent 9822d90bdd
commit 93d2769f23
2 changed files with 16 additions and 1 deletions

View File

@@ -400,6 +400,13 @@
"when": 1786082400000, "when": 1786082400000,
"tag": "0059_bankstatement_notes", "tag": "0059_bankstatement_notes",
"breakpoints": true "breakpoints": true
},
{
"idx": 57,
"version": "7",
"when": 1786086000000,
"tag": "0060_document_import_sources",
"breakpoints": true
} }
] ]
} }

View File

@@ -41,7 +41,15 @@ const form = ref(emptyForm())
const load = async () => { const load = async () => {
loading.value = true loading.value = true
try { try {
sources.value = await api("/api/document-imports") const result = await api<ImportSource[]>("/api/document-imports")
sources.value = Array.isArray(result) ? result : []
} catch (error: any) {
sources.value = []
toast.add({
title: "Importquellen konnten nicht geladen werden",
description: error?.data?.error || error?.message || "Bitte versuche es später erneut.",
color: "error",
})
} finally { } finally {
loading.value = false loading.value = false
} }