feat: Add email field to end_customers table and UI screens
All checks were successful
Staging Build / build (push) Successful in 2m36s

This commit is contained in:
DanielS
2026-06-25 02:29:33 +02:00
parent b9e6559bff
commit b537ca50cf
7 changed files with 38 additions and 3 deletions

View File

@@ -169,6 +169,7 @@ export async function adminCreateEndCustomer(data: {
street?: string
zip?: string
city?: string
email?: string
}) {
const admin = createAdminClient()
const { data: dbData, error } = await admin
@@ -182,6 +183,7 @@ export async function adminCreateEndCustomer(data: {
street: data.street || null,
zip: data.zip || null,
city: data.city || null,
email: data.email || null,
}])
.select()
.single()
@@ -198,6 +200,7 @@ export async function adminUpdateEndCustomer(id: string, data: {
street?: string
zip?: string
city?: string
email?: string
}) {
const admin = createAdminClient()
const { data: dbData, error } = await admin
@@ -211,6 +214,7 @@ export async function adminUpdateEndCustomer(id: string, data: {
street: data.street || null,
zip: data.zip || null,
city: data.city || null,
email: data.email || null,
})
.eq('id', id)
.select()