mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
automatically add club email and website to DB on form submission
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user