KI-AGENT: Importiere Export in bestehenden Zielmandanten
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 17s
Build and Push Docker Images / build-frontend (push) Successful in 49s
Build and Push Docker Images / build-docs (push) Successful in 11s

This commit is contained in:
2026-05-18 21:49:12 +02:00
parent 1c68e6b724
commit c7ba7a9cc5
3 changed files with 72 additions and 5 deletions

View File

@@ -140,7 +140,10 @@ const importTenantExport = async (event: Event) => {
try {
const rawContent = await file.text()
const exportData = JSON.parse(rawContent)
const result = await admin.importTenant(exportData)
const result = await admin.importTenant({
exportData,
targetTenantId: tenantForm.value?.id || tenantId,
})
const rowCount = (result.tables || []).reduce((sum, table) => sum + table.rows, 0)
lastImportResult.value = {