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 {
|
try {
|
||||||
const { name, email, message, club } = input.parsedInput;
|
const { name, email, message, club } = input.parsedInput;
|
||||||
|
|
||||||
|
console.log(club);
|
||||||
|
|
||||||
const clubData = {
|
const clubData = {
|
||||||
name: club.name ?? "",
|
name: club.name ?? "",
|
||||||
address: club.address ?? "",
|
address: club.address ?? "",
|
||||||
|
email: club.email ?? "",
|
||||||
|
website: club.website ?? "",
|
||||||
coordinates: club.coordinates as [number, number],
|
coordinates: club.coordinates as [number, number],
|
||||||
manual_entry: true,
|
manual_entry: true,
|
||||||
pending: true,
|
pending: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user