Change error message Admin can not answer on own contribution.

This commit is contained in:
elweyn 2022-09-06 10:59:32 +02:00
parent 04b96bac2f
commit ced14bd752

View File

@ -718,7 +718,7 @@ export class AdminResolver {
throw new Error('Contribution not found')
}
if (contribution.userId === user.id) {
throw new Error('Can not answer on own contribution')
throw new Error('Admin can not answer on own contribution')
}
contributionMessage.contributionId = contributionId
contributionMessage.createdAt = new Date()