updates
This commit is contained in:
parent
09c32ae6cb
commit
2c575b321f
|
|
@ -196,6 +196,7 @@ export const createInterest = async (data: Partial<Interest>) => {
|
|||
"Date Added",
|
||||
"Width",
|
||||
"Depth",
|
||||
"Created At",
|
||||
"Source",
|
||||
"Contact Method Preferred",
|
||||
"Lead Category",
|
||||
|
|
@ -213,6 +214,11 @@ export const createInterest = async (data: Partial<Interest>) => {
|
|||
}
|
||||
}
|
||||
|
||||
// Set Created At to current timestamp if not provided
|
||||
if (!cleanData["Created At"]) {
|
||||
cleanData["Created At"] = new Date().toISOString();
|
||||
}
|
||||
|
||||
// Remove any computed or relation fields that shouldn't be sent
|
||||
delete cleanData.Id;
|
||||
delete cleanData.Berths;
|
||||
|
|
|
|||
Loading…
Reference in New Issue