1
0
forked from baron/baron-sso

fix(backend): fix UserGroup model and NewTenantService signature in bootstrap and tests

This commit is contained in:
2026-03-04 14:31:05 +09:00
parent 9ac99d2e0c
commit 0a784e5534
4 changed files with 14 additions and 12 deletions

View File

@@ -31,8 +31,9 @@ func SeedTenants(db *gorm.DB) error {
slog.Info("[Bootstrap] Seeding initial tenants...")
repo := repository.NewTenantRepository(db)
userRepo := repository.NewUserRepository(db)
userGroupRepo := repository.NewUserGroupRepository(db)
outboxRepo := repository.NewKetoOutboxRepository(db)
svc := service.NewTenantService(repo, userRepo, outboxRepo)
svc := service.NewTenantService(repo, userRepo, userGroupRepo, outboxRepo)
ctx := context.Background()
for _, config := range defaultTenants {