mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 00:52:21 +03:00
Add viewFields delete in Workspace delete resolver (#1082)
This commit is contained in:
parent
0d16053c31
commit
04297b0556
@ -111,6 +111,7 @@ export class WorkspaceService {
|
||||
comment,
|
||||
activityTarget,
|
||||
activity,
|
||||
viewField,
|
||||
} = this.prismaService.client;
|
||||
|
||||
const activitys = await activity.findMany({
|
||||
@ -150,6 +151,9 @@ export class WorkspaceService {
|
||||
activity.deleteMany({
|
||||
where,
|
||||
}),
|
||||
viewField.deleteMany({
|
||||
where,
|
||||
}),
|
||||
refreshToken.deleteMany({
|
||||
where: { userId },
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user