|
@@ -130,6 +130,9 @@ serve(async (req) => {
|
|
|
|
|
|
|
|
// Prepare call log data
|
|
// Prepare call log data
|
|
|
const callLogData = {
|
|
const callLogData = {
|
|
|
|
|
+ // Primary key - generate UUID for the call log
|
|
|
|
|
+ id: crypto.randomUUID(),
|
|
|
|
|
+
|
|
|
// VAPI-specific fields
|
|
// VAPI-specific fields
|
|
|
vapi_call_id: call?.id || crypto.randomUUID(),
|
|
vapi_call_id: call?.id || crypto.randomUUID(),
|
|
|
vapi_timestamp: timestamp,
|
|
vapi_timestamp: timestamp,
|