mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: cannot query chat history (#6539)
This commit is contained in:
@@ -187,7 +187,16 @@ export class ChatSessionService {
|
||||
userId: true,
|
||||
workspaceId: true,
|
||||
docId: true,
|
||||
messages: true,
|
||||
messages: {
|
||||
select: {
|
||||
role: true,
|
||||
content: true,
|
||||
createdAt: true,
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'asc',
|
||||
},
|
||||
},
|
||||
prompt: {
|
||||
select: {
|
||||
name: true,
|
||||
@@ -197,6 +206,7 @@ export class ChatSessionService {
|
||||
select: {
|
||||
role: true,
|
||||
content: true,
|
||||
createdAt: true,
|
||||
},
|
||||
orderBy: {
|
||||
idx: 'asc',
|
||||
|
||||
Reference in New Issue
Block a user