feat: improve histories query for forked session (#7414)

This commit is contained in:
darkskygit
2024-07-03 04:49:19 +00:00
parent cc7740d8d3
commit e8285289fe
8 changed files with 210 additions and 21 deletions

View File

@@ -273,12 +273,7 @@ export class CopilotResolver {
@Parent() copilot: CopilotType,
@CurrentUser() user: CurrentUser,
@Args('docId', { nullable: true }) docId?: string,
@Args({
name: 'options',
type: () => QueryChatHistoriesInput,
nullable: true,
})
options?: QueryChatHistoriesInput
@Args('options', { nullable: true }) options?: QueryChatHistoriesInput
) {
const workspaceId = copilot.workspaceId;
if (!workspaceId) {