From 0e47b9e4f987817d2d8b00a41188c81b173d1ba6 Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Sun, 8 Oct 2023 23:35:32 +0800 Subject: [PATCH] fix conversation id --- app/src/conf.ts | 2 +- manager/manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/conf.ts b/app/src/conf.ts index 52307f2d..4355df09 100644 --- a/app/src/conf.ts +++ b/app/src/conf.ts @@ -1,6 +1,6 @@ import axios from "axios"; -export const version = "3.3.3"; +export const version = "3.3.4"; export const deploy: boolean = true; export let rest_api: string = "http://localhost:8094"; export let ws_api: string = "ws://localhost:8094"; diff --git a/manager/manager.go b/manager/manager.go index 124a23f0..f86c52ed 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -66,7 +66,7 @@ func ChatAPI(c *gin.Context) { id := auth.GetId(db, user) - instance := conversation.ExtractConversation(db, user, id) + instance := conversation.ExtractConversation(db, user, form.Id) hash := fmt.Sprintf(":chatthread:%s", utils.Md5Encrypt(utils.Multi( authenticated, strconv.FormatInt(id, 10),