1123 Commits

Author SHA1 Message Date
Moriz Wahl
e7b104c3b5
Update backend/src/graphql/directive/isAuthorized.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-14 16:27:36 +01:00
Moriz Wahl
fe38cec4ac further improvement of isAuthorized 2022-03-14 16:22:57 +01:00
Moriz Wahl
bc29e3d6a6 fix wrong db query in create user helper, improve isAuthorized, delete token to simulate unauthenticated 2022-03-14 16:17:11 +01:00
Moriz Wahl
ed84a1dd56 no resetDB and test for inalienable rights first 2022-03-14 15:35:39 +01:00
Moriz Wahl
109853d257 reset token not exported 2022-03-14 14:21:40 +01:00
Moriz Wahl
35cc38ba7c introduce reset token, comment isAuthorized 2022-03-14 14:15:24 +01:00
Moriz Wahl
1dd9f52259 try to fix the token reset 2022-03-14 13:50:30 +01:00
Moriz Wahl
60e83b56d1 feat: Test Logout 2022-03-14 12:56:58 +01:00
Moriz Wahl
4db0235738 await for the connection to close 2022-03-14 10:19:19 +01:00
Moriz Wahl
85ca10f000 refactor: No Reset DB in Backend Unit Tests 2022-03-14 10:10:57 +01:00
Moriz Wahl
e79a583ee2 insert transactionLinkId in transaction made by redeemed link, update transaction link within commit transaction 2022-03-11 16:29:54 +01:00
Moriz Wahl
06d45c1e51 add transaction link id to transaction model 2022-03-11 16:12:13 +01:00
Moriz Wahl
6d284c8170 new DB version 2022-03-11 15:58:16 +01:00
Moriz Wahl
826ad7019c add TODO 2022-03-11 15:33:36 +01:00
Moriz Wahl
13c61984de liniting 2022-03-11 15:27:02 +01:00
Moriz Wahl
df7406b145 Merge branch 'master' into redeem-transaction-link-mutation 2022-03-11 15:25:24 +01:00
Moriz Wahl
13fe4300d2 extract transaction process in function 2022-03-11 15:19:01 +01:00
Moriz Wahl
5d21c25240 also list depricated links 2022-03-11 14:39:12 +01:00
Moriz Wahl
0267a31515 use paginated for args 2022-03-11 14:19:48 +01:00
Moriz Wahl
7c104fc705 Merge branch 'master' into transaction-link-list-query 2022-03-11 14:13:46 +01:00
Moriz Wahl
9912c8913b prevent linter 2022-03-11 14:10:31 +01:00
Moriz Wahl
b54278a080
Merge branch 'master' into virtual-link-transaction 2022-03-11 14:01:42 +01:00
Moriz Wahl
4affd35a44
Update backend/src/graphql/resolver/TransactionResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-11 14:01:35 +01:00
Moriz Wahl
e78337d9ef
Update backend/src/graphql/enum/TransactionTypeId.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-11 14:01:04 +01:00
Moriz Wahl
489ab233b9 define type of arg offset 2022-03-11 13:59:33 +01:00
Moriz Wahl
d46cb9a63c
Merge branch 'master' into transaction-link-list-query 2022-03-11 13:51:22 +01:00
Moriz Wahl
81cd858eb4 call transaction resolver to redeem transactoin link. Optional senderId parameter for sendCoins to redeem links 2022-03-11 13:47:04 +01:00
c042df8714
remove one unnecessary conditional check 2022-03-11 13:12:44 +01:00
Moriz Wahl
fed268afb6 tpye number for offset arg 2022-03-11 12:44:55 +01:00
Moriz Wahl
cda9ee196d tpye number for offset arg 2022-03-11 12:44:32 +01:00
Moriz Wahl
277d0a4b38 set rights 2022-03-11 12:41:13 +01:00
Moriz Wahl
6880fb628e feat: List Transaction Links Query 2022-03-11 12:29:10 +01:00
Moriz Wahl
80201c6fb1 Merge branch 'virtual-link-transaction' into transaction-link-list-query 2022-03-11 12:24:02 +01:00
Moriz Wahl
d62862fab8
Merge branch 'master' into virtual-link-transaction 2022-03-11 11:59:43 +01:00
Moriz Wahl
428e29f5d9 refactor: Transaction Link Query 2022-03-11 11:55:06 +01:00
Moriz Wahl
7f9745c7a4
Merge branch 'master' into remove-showEmail 2022-03-11 11:22:32 +01:00
Moriz Wahl
5300f5db12
Merge branch 'master' into remove-showEmail 2022-03-11 11:15:33 +01:00
Moriz Wahl
50092b0f15 Merge branch 'master' into delete-transaction-link-mutation 2022-03-11 11:14:23 +01:00
Moriz Wahl
e42c91f6e0 rename summary query 2022-03-11 11:07:15 +01:00
Moriz Wahl
80944978ac only one file for virtual transactions 2022-03-11 10:58:14 +01:00
Moriz Wahl
24a0c2d1e4 no calculation in virtual link transaction 2022-03-11 10:46:24 +01:00
Moriz Wahl
120ce948cd
Update backend/src/graphql/resolver/TransactionResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-11 10:38:37 +01:00
Moriz Wahl
762ad9fe9e
Merge branch 'master' into virtual-link-transaction 2022-03-11 10:36:41 +01:00
Moriz Wahl
df94fa8e37 improved query 2022-03-11 10:21:07 +01:00
elweyn
7e3f86f60e Remove unused import. 2022-03-10 23:49:28 +01:00
elweyn
bfba633b78 Change the logic to store the redeemer in transactionLink table. 2022-03-10 21:52:49 +01:00
elweyn
a805f65920 Change the logic to a better argument name for redeemUserId. 2022-03-10 21:37:23 +01:00
elweyn
280de3df9e Add Args for the queryTransactionLink. 2022-03-10 21:36:53 +01:00
elweyn
ade691426e Add logic for user that redeem the link. 2022-03-10 21:24:42 +01:00
Moriz Wahl
3aa3ead86e refactor transaction link sum query, add virtual transaction for transaction links to transaction list 2022-03-10 21:06:09 +01:00