|
@ -27,7 +27,11 @@ export async function saveCallLogs(callLog: { |
|
|
headers: { |
|
|
headers: { |
|
|
"Content-Type": "application/json", |
|
|
"Content-Type": "application/json", |
|
|
}, |
|
|
}, |
|
|
body: JSON.stringify({ from, to, time }), |
|
|
|
|
|
|
|
|
body: JSON.stringify({ |
|
|
|
|
|
callerId: from, |
|
|
|
|
|
receiverId: to, |
|
|
|
|
|
callDuration: time, |
|
|
|
|
|
}), |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
if (!res.ok) { |
|
|
if (!res.ok) { |
|
|