30 Commits

Author SHA1 Message Date
Moriz Wahl
f5d9866644 remove accessLayer folder 2023-02-08 10:33:53 +01:00
Moriz Wahl
cb748d8c50 refactor(backend): get last transaction by only one function 2023-02-06 18:47:58 +01:00
c0b3a93a59
calculate last transaction correctly 2023-01-11 12:35:22 +01:00
4554b01b89
order and correct imports of resolvers 2022-11-22 13:01:38 +01:00
Moriz Wahl
5cac5d9cfb loggers are created only once, unify logger for unit tests 2022-05-16 16:02:12 +02:00
Moriz Wahl
44c5cb8dc1 Merge branch 'master' into improve-apollo-logging 2022-05-16 15:31:46 +02:00
Moriz Wahl
a1e7e65830 fix: Count Deprecated Links as Well 2022-05-12 14:36:04 +02:00
Moriz Wahl
9893cc78aa add context user with user.id instead of public key 2022-05-10 19:33:26 +02:00
Claus-Peter Hübner
cb83027bef additional log output 2022-05-10 04:18:09 +02:00
Moriz Wahl
a6e7036339 remove unused fields from balance model 2022-04-12 21:34:33 +02:00
Moriz Wahl
902dce6390 Context interface in balance resolver 2022-04-11 16:24:38 +02:00
9ed00edc52
code order & comment 2022-03-31 12:14:38 +02:00
d349a46f5d
Balance Resolver: calculate Decay on full sum, not including the links 2022-03-31 12:08:09 +02:00
Moriz Wahl
90e6798a7d rename context.count to context.transactionCount 2022-03-29 16:10:06 +02:00
Moriz Wahl
633eef7c16 round GDD values in balance object 2022-03-29 02:34:13 +02:00
Moriz Wahl
feb89cf4e0 import transaction as db transaction 2022-03-29 01:58:20 +02:00
Moriz Wahl
27ad1d2e22 transaction list model contains balance, user balance resolver to create transacton list result 2022-03-29 01:54:13 +02:00
Moriz Wahl
e9e97549a7 rename right to GDT_BALANCE, rename query to gdtBalance, ensure gdtBalance is null when API call fails 2022-03-29 01:12:07 +02:00
Moriz Wahl
3a8229f60f include hold available amount in balance calculation 2022-03-23 19:18:18 +01:00
Moriz Wahl
a1ac6600b7 refactor resolvers to use balance resolver and model 2022-03-23 19:06:12 +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
0136a22f0c resolve relative paths in resolvers 2022-03-07 21:35:50 +01:00
e988cf9371
defining precision in config seems to work properly afterall 2022-02-27 13:05:27 +01:00
9c27568f77
include decimal with precision definition 2022-02-27 03:09:18 +01:00
7644bf1834
backend compiles 2022-02-26 03:42:20 +01:00
9574af9278
removed balance & transaction repository since its no longer needed 2022-02-21 00:38:39 +01:00
736310f5d5
fix build error - type errors 2022-02-02 19:48:20 +01:00
5bc23a4857
remove typeorm from backend project and reference the one installed in database. This way the default connection of the enteties can be used - this was not possible before since the connection waa created in the backend typeorm, but the entities are defined in the database installation.
We now remove the typeorm from backend and rely solely on the database typeorm. We now can use both activeRecord and dataMapper pattern.
2022-02-01 04:14:54 +01:00
a24c6119a6
check rights on all resolvers 2021-11-24 19:41:26 +01:00
084561e5fb
resolver in singulat folder 2021-10-03 11:13:21 +02:00