fix: gql result check for clean history (#7154)

This commit is contained in:
darkskygit
2024-06-05 07:49:40 +00:00
parent ecff441516
commit a5f9bfdda9
3 changed files with 18 additions and 19 deletions

View File

@@ -314,7 +314,7 @@ export class CopilotResolver {
return session;
}
@Mutation(() => String, {
@Mutation(() => [String], {
description: 'Cleanup sessions',
})
async cleanupCopilotSession(
@@ -336,11 +336,10 @@ export class CopilotResolver {
return new TooManyRequestsException('Server is busy');
}
const ret = await this.chatSession.cleanup({
return await this.chatSession.cleanup({
...options,
userId: user.id,
});
return ret;
}
@Mutation(() => String, {