🌟 Refactor

- Moved mappings into Sb1 impl
- Moved Actual types to @common
- Moved createDirIfMissing to respective functions
- Refactored main into multiple functions
- Moved create db into Sb1impl and close
- Log requests on info
This commit is contained in:
2025-02-13 21:07:30 +01:00
parent 06cc89f762
commit 4367c24fb0
13 changed files with 178 additions and 118 deletions

View File

@ -1,7 +1,7 @@
services:
server:
container_name: actual_sparebank1_cronjob
restart: no
restart: unless-stopped
build:
context: .
environment:
@ -16,7 +16,7 @@ services:
- BANK_OAUTH_CLIENT_SECRET
- BANK_ACCOUNT_IDS
- LOG_LEVEL
- DB_DIRECTORY # Required for Docker Compose
- DB_DIRECTORY
- DB_FILENAME
- TRANSACTION_RELATIVE_FROM_DATE
- TRANSACTION_RELATIVE_TO_DATE
@ -24,6 +24,7 @@ services:
- cache:/${ACTUAL_DATA_DIR:-.cache}
- data:/${DB_DIRECTORY:-data}
# TODO change volume name from hostexecutor-*
volumes:
cache:
data: