fix(server): handle hanging workspace after user account deleted (#8377)

fix CLOUD-74
This commit is contained in:
forehalo
2024-09-25 06:16:32 +00:00
parent d0050a268a
commit 1d75d97a8f
6 changed files with 43 additions and 16 deletions
@@ -19,7 +19,11 @@ export interface DocEvents {
export interface UserEvents {
updated: Payload<Omit<User, 'password'>>;
deleted: Payload<User>;
deleted: Payload<
User & {
ownedWorkspaces: Workspace['id'][];
}
>;
}
/**