mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add deletedBy value on deleteContribution mutation.
This commit is contained in:
parent
c9f8b70201
commit
eb18bb8e7c
@ -70,6 +70,7 @@ export class ContributionResolver {
|
||||
throw new Error('A confirmed contribution can not be deleted')
|
||||
}
|
||||
contribution.contributionStatus = ContributionStatus.DELETED
|
||||
contribution.deletedBy = user.id
|
||||
await contribution.save()
|
||||
const res = await contribution.softRemove()
|
||||
return !!res
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user