mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 20:58:12 +00:00
4.8.5 test (#1819)
This commit is contained in:
@@ -8,7 +8,7 @@ import { ApiRequestProps } from '@fastgpt/service/type/next';
|
||||
|
||||
/* update chat top, custom title */
|
||||
async function handler(req: ApiRequestProps<UpdateHistoryProps>, res: NextApiResponse) {
|
||||
const { appId, chatId, customTitle, top } = req.body;
|
||||
const { appId, chatId, title, customTitle, top } = req.body;
|
||||
await autChatCrud({
|
||||
req,
|
||||
authToken: true,
|
||||
@@ -20,6 +20,7 @@ async function handler(req: ApiRequestProps<UpdateHistoryProps>, res: NextApiRes
|
||||
{ appId, chatId },
|
||||
{
|
||||
updateTime: new Date(),
|
||||
...(title !== undefined && { title }),
|
||||
...(customTitle !== undefined && { customTitle }),
|
||||
...(top !== undefined && { top })
|
||||
}
|
||||
|
Reference in New Issue
Block a user