automatically add club email and website to DB on form submission

This commit is contained in:
2025-11-24 15:19:23 +01:00
committed by Owen Rees
parent e62feef1a9
commit f55064adc9
+4
View File
@@ -11,9 +11,13 @@ export const addClub = actionClient
try {
const { name, email, message, club } = input.parsedInput;
console.log(club);
const clubData = {
name: club.name ?? "",
address: club.address ?? "",
email: club.email ?? "",
website: club.website ?? "",
coordinates: club.coordinates as [number, number],
manual_entry: true,
pending: true,