mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
fix: migrate old schema to new
This commit is contained in:
parent
0fa19bb6ad
commit
4fd05e15b4
6 changed files with 108 additions and 42 deletions
|
|
@ -14,7 +14,7 @@ router.post('/', async (req, res) => {
|
|||
|
||||
const conversationId = oldConversationId || crypto.randomUUID();
|
||||
|
||||
const userMessageId = messageId;
|
||||
const userMessageId = crypto.randomUUID();
|
||||
const userParentMessageId = parentMessageId || '00000000-0000-0000-0000-000000000000'
|
||||
let userMessage = {
|
||||
messageId: userMessageId,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ router.post('/', async (req, res) => {
|
|||
|
||||
const conversationId = oldConversationId || crypto.randomUUID();
|
||||
|
||||
const userMessageId = messageId;
|
||||
const userMessageId = crypto.randomUUID();
|
||||
const userParentMessageId = parentMessageId || '00000000-0000-0000-0000-000000000000'
|
||||
let userMessage = {
|
||||
messageId: userMessageId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue