This commit is contained in:
+2
-4
@@ -93,7 +93,7 @@ func main() {
|
||||
// Initialize script interpreter repository and service
|
||||
scriptRepo := repository.NewScriptInterpreterRepo(db)
|
||||
if err := scriptRepo.Init(context.Background()); err != nil {
|
||||
log.Printf("Warning: failed to initialize script interpreters table: %v", err)
|
||||
log.Fatalf("Warning: failed to initialize script interpreters table: %v\n", err)
|
||||
}
|
||||
scriptSvc := service.NewScriptServiceWithInterpreters(h.Repo, scriptRepo)
|
||||
scriptHandlers := handlers.NewScriptHandlers(scriptSvc, cmdTracker,
|
||||
@@ -103,9 +103,7 @@ func main() {
|
||||
jobRepo,
|
||||
)
|
||||
|
||||
// Initialize script management service and handlers
|
||||
scriptManageSvc := service.NewScriptService(h.Repo)
|
||||
scriptManageHandlers := handlers.NewScriptHandlersGroup(scriptManageSvc, cmdr,
|
||||
scriptManageHandlers := handlers.NewScriptHandlersGroup(scriptSvc, cmdr,
|
||||
os.Getenv("WHEREAMI"))
|
||||
|
||||
agents := handlers.NewAgentsGroup(h, coll)
|
||||
|
||||
Reference in New Issue
Block a user