mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat(server): update session after doc deletion (#13028)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Sessions associated with a deleted document are now automatically updated to remove the document reference. * **Improvements** * Enhanced session management to better handle documents that have been deleted. No visible changes to the user interface; these updates improve backend handling of session and document relationships. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -91,7 +91,7 @@ export type ListSessionOptions = Pick<
|
||||
Partial<ChatSession>,
|
||||
'sessionId' | 'workspaceId' | 'docId' | 'pinned'
|
||||
> & {
|
||||
userId: string;
|
||||
userId: string | undefined;
|
||||
action?: boolean;
|
||||
fork?: boolean;
|
||||
limit?: number;
|
||||
|
||||
Reference in New Issue
Block a user