Add viewFields delete in Workspace delete resolver (#1082)
This commit is contained in:
@ -111,6 +111,7 @@ export class WorkspaceService {
|
|||||||
comment,
|
comment,
|
||||||
activityTarget,
|
activityTarget,
|
||||||
activity,
|
activity,
|
||||||
|
viewField,
|
||||||
} = this.prismaService.client;
|
} = this.prismaService.client;
|
||||||
|
|
||||||
const activitys = await activity.findMany({
|
const activitys = await activity.findMany({
|
||||||
@ -150,6 +151,9 @@ export class WorkspaceService {
|
|||||||
activity.deleteMany({
|
activity.deleteMany({
|
||||||
where,
|
where,
|
||||||
}),
|
}),
|
||||||
|
viewField.deleteMany({
|
||||||
|
where,
|
||||||
|
}),
|
||||||
refreshToken.deleteMany({
|
refreshToken.deleteMany({
|
||||||
where: { userId },
|
where: { userId },
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user