Projekttyp-Verwaltung reparieren
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 46s
Build and Push Docker Images / build-frontend (push) Successful in 1m12s
Build and Push Docker Images / build-website (push) Successful in 23s
Build and Push Docker Images / build-central-services-api (push) Successful in 22s
Build and Push Docker Images / build-central-services-admin (push) Successful in 21s
Build and Push Docker Images / build-docs (push) Successful in 21s

This commit is contained in:
2026-09-09 12:56:32 +02:00
parent df2308d407
commit 4e05906556
4 changed files with 373 additions and 265 deletions

View File

@@ -28,6 +28,7 @@ const columnMap: Record<string, any> = {
customerinventoryitems: historyitems.customerinventoryitem,
memberrelations: historyitems.memberrelation,
outgoingsepamandates: historyitems.outgoingsepamandate,
projecttypes: historyitems.projecttype,
};
const insertFieldMap: Record<string, string> = {
@@ -55,6 +56,7 @@ const insertFieldMap: Record<string, string> = {
customerinventoryitems: "customerinventoryitem",
memberrelations: "memberrelation",
outgoingsepamandates: "outgoingsepamandate",
projecttypes: "projecttype",
}
const parseId = (value: string) => {

View File

@@ -35,6 +35,7 @@ const HISTORY_ENTITY_LABELS: Record<string, string> = {
memberrelations: "Mitgliedsverhältnisse",
teams: "Teams",
outgoingsepamandates: "Ausgehende SEPA-Mandate",
projecttypes: "Projekttypen",
}
export function getHistoryEntityLabel(entity: string) {
@@ -96,6 +97,7 @@ export async function insertHistoryItem(
files: "file",
memberrelations: "memberrelation",
outgoingsepamandates: "outgoingsepamandate",
projecttypes: "projecttype",
}
const fkColumn = columnMap[params.entity]