fix: migrate old schema to new

This commit is contained in:
Daniel Avila 2023-03-13 21:59:25 -04:00 committed by Wentao Lyu
parent 0fa19bb6ad
commit 4fd05e15b4
6 changed files with 108 additions and 42 deletions

View file

@ -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,

View file

@ -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,