fix: preserve dates for chat imports
Co-Authored-By: conql <49243542+conql@users.noreply.github.com>
This commit is contained in:
co-authored by
conql
parent
3f800c069e
commit
2c6227e4b6
@@ -37,7 +37,9 @@ export const importChat = async (
|
||||
chat: object,
|
||||
meta: object | null,
|
||||
pinned?: boolean,
|
||||
folderId?: string | null
|
||||
folderId?: string | null,
|
||||
createdAt: number | null = null,
|
||||
updatedAt: number | null = null
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
@@ -52,7 +54,9 @@ export const importChat = async (
|
||||
chat: chat,
|
||||
meta: meta ?? {},
|
||||
pinned: pinned,
|
||||
folder_id: folderId
|
||||
folder_id: folderId,
|
||||
created_at: createdAt ?? null,
|
||||
updated_at: updatedAt ?? null
|
||||
})
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
||||
Reference in New Issue
Block a user