fix(services): Fix service startup failures

- Remove duplicate CoreModule() calls from all service main.go files
  - NewContainer() already includes CoreModule() automatically
  - This was causing duplicate ConfigProvider provider errors

- Update all _fx.go files to use *database.Client instead of *ent.Client
  - database.Client embeds *ent.Client, so it can be used directly
  - This fixes type mismatches between providers and consumers
  - Keep ent import for constants like ent.Desc

- All services now build and should start successfully
This commit is contained in:
2025-11-06 20:56:37 +01:00
parent 2f2a14f2c5
commit dfe460cb03
11 changed files with 1215 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ services:
- goplt-network
consul:
image: consul:latest
image: consul:1.15.4
container_name: goplt-consul
command: consul agent -dev -client=0.0.0.0
ports: