mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(server): nullable value for parent id (#10725)
This commit is contained in:
@@ -146,7 +146,11 @@ export class CopilotContextRootResolver {
|
||||
if (!lock) {
|
||||
return new TooManyRequest('Server is busy');
|
||||
}
|
||||
await this.checkChatSession(user, sessionId, copilot.workspaceId);
|
||||
await this.checkChatSession(
|
||||
user,
|
||||
sessionId,
|
||||
copilot.workspaceId || undefined
|
||||
);
|
||||
|
||||
if (contextId) {
|
||||
const context = await this.context.get(contextId);
|
||||
|
||||
Reference in New Issue
Block a user