166 Commits

Author SHA1 Message Date
Hannes Heine
e2b7c9dece
Merge branch 'master' into 2000-contribution-delete 2022-07-06 10:15:03 +02:00
elweyn
103928518c Change utils file isContributionValid to contributions and changed method isContributionValid to validateContribution. 2022-07-05 11:35:50 +02:00
elweyn
9bd5710933 Add check if user is owner of the contribution before deleting. 2022-07-05 09:37:41 +02:00
elweyn
62e7abe76e Add mutation to soft delete a contribution. 2022-07-05 09:22:32 +02:00
elweyn
8e7476ecb0 Refactor return value so that their is only one return value. 2022-07-05 09:07:29 +02:00
elweyn
7b38fe7f93 Function for updateContribution. 2022-07-04 07:41:41 +02:00
elweyn
3ce80fc081 Remove unused imports. 2022-06-30 16:47:44 +02:00
elweyn
f19a6f1d15 Create model for Contribution and create function to query listContributions. 2022-06-30 13:58:21 +02:00
elweyn
c7ea879e36 Change return value of createContribution from Boolean to UnconfirmedContribution, add constructor to UnconfirmedContribution. 2022-06-29 11:56:18 +02:00
elweyn
6e5540b863 Move all util methods to isContributionValid file, add const file for Resolvers. 2022-06-29 10:49:53 +02:00
elweyn
237c01af1b Refactor CreateContributionArgs to ContributionArgs so that it can be used for updateContribution. 2022-06-29 10:13:08 +02:00
elweyn
5a51207895 Remove unused imports. 2022-06-28 09:59:25 +02:00
elweyn
457016a7a7 Withdrew if contribution not valid statement since the method throws an exception if not valid. 2022-06-27 17:43:10 +02:00
elweyn
38e04b4979 Remove checks on users since the authorization token handels it. 2022-06-27 17:12:59 +02:00
elweyn
c03509c525 Change response value to boolean, add RIGHTS for createContribution, add new RIGHT in ROLES. 2022-06-27 13:40:36 +02:00
elweyn
2d90fdd64e New Resolver for Contribution, createContribution method. 2022-06-24 12:19:02 +02:00