chore: test deploy snapshot
This commit is contained in:
@@ -1591,6 +1591,7 @@ export async function registerChatRoutes(app: FastifyInstance) {
|
||||
accessPinPromptTtlMinutes: z.number().int().min(0).max(7 * 24 * 60).optional().nullable(),
|
||||
chatTypeId: z.string().trim().min(1).max(120).optional().nullable(),
|
||||
chatTypeLabel: z.string().trim().min(1).max(200).optional().nullable(),
|
||||
title: z.string().trim().min(1).max(200).optional().nullable(),
|
||||
notifyOffline: z.boolean().optional().nullable(),
|
||||
}).parse(request.body ?? {});
|
||||
const managedContext = await resolveManagedChatShareContext(params.token);
|
||||
@@ -1655,13 +1656,14 @@ export async function registerChatRoutes(app: FastifyInstance) {
|
||||
|
||||
let updatedConversation = await getChatConversation(tokenPayload.sessionId, getRequestClientId(request));
|
||||
|
||||
if (payload.chatTypeId || payload.notifyOffline != null) {
|
||||
if (payload.chatTypeId || payload.title || payload.notifyOffline != null) {
|
||||
updatedConversation = await updateChatConversationContext(tokenPayload.sessionId, {
|
||||
clientId: getRequestClientId(request),
|
||||
chatTypeId: payload.chatTypeId?.trim() || undefined,
|
||||
lastChatTypeId: payload.chatTypeId?.trim() || undefined,
|
||||
contextLabel: payload.chatTypeLabel?.trim() || undefined,
|
||||
contextDescription: payload.chatTypeId ? null : undefined,
|
||||
title: payload.title?.trim() || undefined,
|
||||
notifyOffline: payload.notifyOffline ?? undefined,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user