General Actions to handlers Refacto

This commit is contained in:
STEINNI
2026-06-20 18:50:26 +00:00
parent 7435d96135
commit 44a84c64ec
56 changed files with 832 additions and 973 deletions
+4
View File
@@ -3,6 +3,7 @@ import yargs from 'yargs/yargs'
import { hideBin } from 'yargs/helpers'
import 'node:process'
import { RedisConnexion } from '../redisConnexion.js'
import { busReplyRoute } from '../bus/publishActionReply.js'
import { configHelper } from '../configHelper.js'
import { observerServer } from './observerServer.js'
import * as systemMesh from './actions/system/index.js'
@@ -49,6 +50,7 @@ let cfgh = new configHelper({
function meshRedisConns(mesh, meshName, debug, rootConfig) {
const { redis, ...meshConfig } = mesh
const busRoute = busReplyRoute(rootConfig.observer, meshName)
return redis.map(cfg =>
new RedisConnexion({
debug,
@@ -56,6 +58,8 @@ function meshRedisConns(mesh, meshName, debug, rootConfig) {
redisId: cfg.redisId,
meshName,
meshModule: meshModules[meshName],
senderId: busRoute?.senderId,
actionsReply: busRoute?.actionsReply,
})
)
}