mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix: gql result check for clean history (#7154)
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user