This commit is contained in:
2025-06-11 13:54:04 +02:00
parent fca6321dcf
commit 0b6601fabc
8 changed files with 65 additions and 292 deletions

View File

@@ -196,7 +196,6 @@ export const createInterest = async (data: Partial<Interest>) => {
"Date Added",
"Width",
"Depth",
"Created At",
"Source",
"Contact Method Preferred",
"Lead Category",
@@ -214,11 +213,6 @@ 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;