mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 15:52:10 +01:00
Broken shit
This commit is contained in:
@ -102,7 +102,9 @@ export async function storeMessagesForSession(sessionId, messages) {
|
||||
|
||||
// Extract actual end time from the latest message
|
||||
const latestMessage = messages.reduce((latest, current) => {
|
||||
return new Date(current.timestamp) > new Date(latest.timestamp) ? current : latest;
|
||||
return new Date(current.timestamp) > new Date(latest.timestamp)
|
||||
? current
|
||||
: latest;
|
||||
});
|
||||
|
||||
// Update the session's endTime with the actual conversation end time
|
||||
|
||||
Reference in New Issue
Block a user