88 Commits

Author SHA1 Message Date
5f8702c3c4
catch error for not existing users and test this 2023-02-27 15:44:14 +01:00
75d23c5daf
corrected return type of listTransactionLinks 2023-02-23 21:36:59 +01:00
b887068226
remove user constant, not required 2023-02-17 23:12:11 +01:00
d21996a045
externalize transactionLinkList function into utils folder 2023-02-17 23:10:31 +01:00
12c128e072
do not requqery the user 2023-02-17 23:03:38 +01:00
9de2149c8f
Merge branch 'master' into combine_listTransactionLinks_and_listTransactionLinksAdmin 2023-02-17 14:10:51 +01:00
5560163736
Merge branch 'master' into logger_errors 2023-02-17 12:08:45 +01:00
ae940b509a
removed unused imports 2023-02-14 21:33:24 +01:00
66a5175dc1
combine logic for both listTransactionLinks and listTransactionLinksAdmin 2023-02-14 21:28:58 +01:00
92af85044f
Merge branch 'master' into logger_transactionLinkResolver 2023-02-13 11:37:04 +01:00
Moriz Wahl
f5d9866644 remove accessLayer folder 2023-02-08 10:33:53 +01:00
3563aef346
use LogError instead of Error where applicable 2023-02-07 17:14:44 +01:00
283e09ea3d
separate error cases, have some basic testing for transaction links, reorder tests 2023-02-07 11:43:04 +01:00
add7d9b448
implement LogError on TransactionLinkResolver 2023-02-06 23:10:36 +01:00
Moriz Wahl
cb748d8c50 refactor(backend): get last transaction by only one function 2023-02-06 18:47:58 +01:00
3bf69814ca
test error cases for semaphore 2023-01-16 16:47:33 +01:00
dab7fe584a
try catch around semaphore lock 2023-01-16 11:04:14 +01:00
Moriz Wahl
6a36d9afb2 remove console logs 2022-12-22 14:08:32 +01:00
55236f1f8e
fix another order by id instead of balanceDate.
Have the now calculation for contribution links within the semaphore lock
2022-12-21 00:08:46 +01:00
f306dddfaf
console logs, fix order by id instead of date 2022-12-15 23:06:29 +01:00
a98d569fb3
lock also on transactionLink 2022-12-15 13:07:53 +01:00
fa5b7e6b81
Merge branch 'master' into dissolve_admin_resolver
# Conflicts:
#	backend/src/graphql/resolver/TransactionResolver.ts
#	backend/src/graphql/resolver/UserResolver.test.ts
#	backend/src/graphql/resolver/UserResolver.ts
2022-11-29 06:15:31 +01:00
Moriz Wahl
b3e880d45f undo refactoring 2022-11-24 13:03:50 +01:00
ecb99bd603
separate Contribution- and TransactionLink Resolvers 2022-11-23 23:37:47 +01:00
4554b01b89
order and correct imports of resolvers 2022-11-22 13:01:38 +01:00
db1a11a2b5
seperate admin resolver into existing resolvers 2022-11-22 12:41:08 +01:00
Moriz Wahl
ef79580387 required argument client time zone offset for utils in creation 2022-11-15 14:20:33 +01:00
Moriz Wahl
b2a1d7d672 include pending contributions for validation of contribution link, test it 2022-10-26 06:38:49 +02:00
joseji
259475755c fixed wrong responsabilities of exception throwing and implementation of calculateBalance() 2022-10-18 23:24:43 +02:00
Moriz Wahl
9ae023842b fix: Daily Redeem of Contribution Link 2022-10-17 08:54:53 +02:00
Moriz Wahl
7e66e299d9 feat: Daily Rule for Contribution Links 2022-10-12 14:46:22 +02:00
Claus-Peter Hübner
e701f99553 rework PR comments 2022-09-23 01:11:37 +02:00
Claus-Peter Hübner
86b12f98ed set overall resolvers the isolationlevel to REPEATABLE READ 2022-09-16 15:20:51 +02:00
Claus-Peter Hübner
411e03c843 rework PR comments 2022-09-15 02:40:59 +02:00
Moriz Wahl
c417bc7a10 add contribution status enum and set it 2022-08-15 19:02:06 +02:00
Moriz Wahl
daa8d48ca6 add contribution type enum and set contribution type on creation 2022-08-15 18:50:25 +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
001117527c Change import of getUserCreation in isContributionValid. 2022-06-29 10:52:36 +02:00
elweyn
6ac0106470 Change import for refactored methods. 2022-06-27 13:37:47 +02:00
ogerly
6ecc10318d remove double whitespace 2022-06-17 09:42:35 +02:00
Moriz Wahl
9ca1ee3455 fix validation rules for redeem contribution link 2022-06-16 12:39:07 +02:00
Moriz Wahl
232beb8bd9 quick and dirty confirm contribution link 2022-06-16 11:59:38 +02:00
Moriz Wahl
06b5c7606c query for transaction link may find a contribution link 2022-06-16 10:57:38 +02:00
Moriz Wahl
6cc8410720 helper function to get user from context 2022-04-11 16:15:57 +02:00
Moriz Wahl
b0606424d4 Context interface in transaction link resolver 2022-04-11 16:08:39 +02:00
Moriz Wahl
384fd12b63 change parameter name to code 2022-03-20 19:00:36 +01:00
Moriz Wahl
e9357198c0 change parameter name to code 2022-03-20 18:58:20 +01:00
ogerly
1315ab4fa0 change parameter id from Int to String 2022-03-20 11:25:18 +01:00
Moriz Wahl
7f6b7482b0 Int as arg type for ID 2022-03-19 12:35:34 +01:00
Moriz Wahl
8038f1bf9b include deleted links 2022-03-19 12:29:43 +01:00