Add viewFields delete in Workspace delete resolver (#1082)

This commit is contained in:
Weiko 2023-08-05 00:23:56 +02:00 committed by GitHub
parent 0d16053c31
commit 04297b0556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 },
}),