feat: Add email field to end_customers table and UI screens
All checks were successful
Staging Build / build (push) Successful in 2m36s
All checks were successful
Staging Build / build (push) Successful in 2m36s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user