668 Commits

Author SHA1 Message Date
Moriz Wahl
8038f1bf9b include deleted links 2022-03-19 12:29:43 +01:00
Moriz Wahl
303ab94ba3
Merge branch 'master' into user-entity-in-context 2022-03-18 15:13:11 +01:00
Moriz Wahl
e8625cb5af remove console log 2022-03-17 11:32:52 +01:00
Moriz Wahl
f21e0ed038 only creations transaction list with admin rights 2022-03-17 11:20:26 +01:00
Moriz Wahl
577ca00c46 refactor transaction list query, do not allow user id an only creations as args any more. this query only return the transactions of the logged in user 2022-03-17 10:46:29 +01:00
Moriz Wahl
b44ef71756 no double DB calls to get user from db in resolvers 2022-03-17 10:05:07 +01:00
Moriz Wahl
fd9292b3d5 user context in admin interface 2022-03-17 09:57:19 +01:00
Moriz Wahl
ac11d1fa60 store user entity created on authentication check in context to avoid further DB calls 2022-03-17 09:55:15 +01:00
Moriz Wahl
51c06741fc get test working with chages to the schema 2022-03-17 09:06:40 +01:00
Moriz Wahl
1182b94075 createUser returns User object, adopt mutations, reduce db calls in seed 2022-03-17 08:40:02 +01:00
Moriz Wahl
d1fe360157 Merge branch 'master' into seed-transaction-links 2022-03-16 22:10:16 +01:00
Moriz Wahl
7731cb9949
Merge branch 'master' into seed-transactions-in-backend 2022-03-16 19:26:28 +01:00
Moriz Wahl
7656649253
Merge branch 'master' into seed-in-backend 2022-03-15 21:44:05 +01:00
Moriz Wahl
5b9463ca2a seed deleted and outdated transaction links 2022-03-15 21:24:44 +01:00
Moriz Wahl
5e8e885841 fix test 2022-03-15 20:32:33 +01:00
Moriz Wahl
fef7c6b8cc rename userFactory 2022-03-15 17:41:22 +01:00
Moriz Wahl
e45e580627 setup testClient for seeding 2022-03-15 12:30:02 +01:00
Moriz Wahl
00c70311a1 use factory to create user in test, use bibi bloxberg as seeded user (no admin) 2022-03-15 11:19:19 +01:00
Moriz Wahl
004627ddcf create factory folder, move user creation in factory 2022-03-15 10:23:24 +01:00
Moriz Wahl
b30f4dfa5d copy queries and mutations from frontend and use them 2022-03-15 10:17:36 +01:00
Alexander Friedland
1ae4aa4e85
Merge branch 'master' into 1594-Show-if-a-transaction-was-created-by-link 2022-03-14 18:06:14 +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
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
bb14c07747 sum of hold available and hold available decay is negative 2022-03-14 08:56:26 +01:00
Moriz Wahl
7f89fb5452 transactionList query includes the total count of the pending transaction links 2022-03-14 08:23:08 +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
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
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