3.0.0 #220

Merged
flfeders merged 676 commits from dev into main 2026-09-20 16:10:48 +00:00
Showing only changes of commit ee7d3d3afc - Show all commits

View File

@@ -587,6 +587,10 @@ const remapTenantScopedExport = (
nextRow.path = `${targetPathPrefix}${nextRow.path.slice(sourcePathPrefix.length)}`
}
if (table === "letterheads" && typeof nextRow.path === "string" && nextRow.path.startsWith(sourcePathPrefix)) {
nextRow.path = `${targetPathPrefix}${nextRow.path.slice(sourcePathPrefix.length)}`
}
return nextRow
})
}
@@ -851,8 +855,15 @@ export const importTenantFullExport = async (
importedTables.push({ table: "bankstatements", rows: result.count })
}
const letterheadMetadata = columnsByTable.get("letterheads")
if (letterheadMetadata) {
const result = await insertIdentityRowsWithRemap(client, "letterheads", exportData.tables.letterheads || [], letterheadMetadata)
remapTableColumn(exportData.tables.createddocuments, "letterhead", result.idMap)
importedTables.push({ table: "letterheads", rows: result.count })
}
for (const table of tableNames) {
if (["bankaccounts", "bankstatements"].includes(table)) continue
if (["bankaccounts", "bankstatements", "letterheads"].includes(table)) continue
const rows = exportData.tables[table] || []
const metadata = columnsByTable.get(table)