feat: enable Fischerei, Sitzungsprotokolle, Verbandsverwaltung modules
- Enable all 3 modules via NEXT_PUBLIC_ENABLE_* build args + runtime env - Fix empty-string-to-null for date/optional columns in all module APIs: fischerei (24 fixes), verbandsverwaltung (15 fixes), sitzungsprotokolle (2 fixes) - CACHE_BUST=12 for full rebuild with new feature flags
This commit is contained in:
@@ -83,19 +83,19 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
.insert({
|
||||
account_id: input.accountId,
|
||||
name: input.name,
|
||||
short_name: input.shortName,
|
||||
short_name: input.shortName || null,
|
||||
association_type_id: input.associationTypeId,
|
||||
member_count: input.memberCount,
|
||||
founded_year: input.foundedYear,
|
||||
street: input.street,
|
||||
zip: input.zip,
|
||||
city: input.city,
|
||||
phone: input.phone,
|
||||
email: input.email,
|
||||
website: input.website,
|
||||
iban: input.iban,
|
||||
bic: input.bic,
|
||||
account_holder: input.accountHolder,
|
||||
phone: input.phone || null,
|
||||
email: input.email || null,
|
||||
website: input.website || null,
|
||||
iban: input.iban || null,
|
||||
bic: input.bic || null,
|
||||
account_holder: input.accountHolder || null,
|
||||
is_archived: input.isArchived,
|
||||
created_by: userId,
|
||||
updated_by: userId,
|
||||
@@ -206,8 +206,8 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
first_name: input.firstName,
|
||||
last_name: input.lastName,
|
||||
role: input.role,
|
||||
phone: input.phone,
|
||||
email: input.email,
|
||||
phone: input.phone || null,
|
||||
email: input.email || null,
|
||||
is_primary: input.isPrimary,
|
||||
})
|
||||
.select()
|
||||
@@ -265,7 +265,7 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
.insert({
|
||||
account_id: input.accountId,
|
||||
name: input.name,
|
||||
description: input.description,
|
||||
description: input.description || null,
|
||||
sort_order: input.sortOrder,
|
||||
})
|
||||
.select()
|
||||
@@ -319,7 +319,7 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
.insert({
|
||||
account_id: input.accountId,
|
||||
name: input.name,
|
||||
description: input.description,
|
||||
description: input.description || null,
|
||||
sort_order: input.sortOrder,
|
||||
})
|
||||
.select()
|
||||
@@ -373,7 +373,7 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
.insert({
|
||||
account_id: input.accountId,
|
||||
name: input.name,
|
||||
description: input.description,
|
||||
description: input.description || null,
|
||||
default_amount: input.defaultAmount,
|
||||
is_active: input.isActive,
|
||||
})
|
||||
@@ -462,8 +462,8 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
fee_type_id: input.feeTypeId,
|
||||
year: input.year,
|
||||
amount: input.amount,
|
||||
due_date: input.dueDate,
|
||||
paid_date: input.paidDate,
|
||||
due_date: input.dueDate || null,
|
||||
paid_date: input.paidDate || null,
|
||||
payment_method: input.paymentMethod,
|
||||
status: input.status,
|
||||
notes: input.notes,
|
||||
@@ -527,7 +527,7 @@ export function createVerbandApi(client: SupabaseClient<Database>) {
|
||||
title: input.title,
|
||||
content: input.content,
|
||||
note_type: input.noteType,
|
||||
due_date: input.dueDate,
|
||||
due_date: input.dueDate || null,
|
||||
is_completed: input.isCompleted,
|
||||
})
|
||||
.select()
|
||||
|
||||
Reference in New Issue
Block a user