fix(about): convert to server component to avoid server-only conflict
Deploy to route.crispygoat.com / deploy (push) Failing after 3m25s

This commit is contained in:
openclaw
2026-06-09 12:29:48 -06:00
parent 916ad39176
commit 0f9ca2f331
3 changed files with 200 additions and 178 deletions
+12
View File
@@ -528,6 +528,18 @@ export async function getWholesaleSettings(brandId?: string): Promise<WholesaleS
}
}
export async function getWholesaleSettingsPublic(brandId: string): Promise<{ invoice_business_address: string | null } | null> {
try {
const { rows } = await pool.query<{ invoice_business_address: string | null }>(
"SELECT invoice_business_address FROM get_wholesale_settings($1)",
[brandId]
);
return rows[0] ?? null;
} catch {
return null;
}
}
export async function saveWholesaleSettings(params: {
brandId: string;
requireApproval?: boolean;