diff --git a/package-lock.json b/package-lock.json index 0f13758..855d29a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "1.2.2", "license": "AGPL", "dependencies": { - "@grpc/grpc-js": "^1.9.5", + "@grpc/grpc-js": "^1.9.6", "@grpc/proto-loader": "^0.7.10", - "@mobicoop/configuration-module": "^2.0.0", + "@mobicoop/configuration-module": "^3.0.0", "@mobicoop/ddd-library": "^2.0.0", "@mobicoop/health-module": "^2.3.1", "@mobicoop/message-broker-module": "^2.1.1", @@ -40,7 +40,7 @@ "@nestjs/cli": "^10.1.18", "@nestjs/schematics": "^10.0.2", "@nestjs/testing": "^10.2.7", - "@types/jest": "^29.5.5", + "@types/jest": "^29.5.6", "@types/node": "^20.8.6", "@types/uuid": "^9.0.5", "eslint": "^8.51.0", @@ -1038,9 +1038,9 @@ ] }, "node_modules/@grpc/grpc-js": { - "version": "1.9.5", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.5.tgz", - "integrity": "sha512-iouYNlPxRAwZ2XboDT+OfRKHuaKHiqjB5VFYZ0NFrHkbEF+AV3muIUY9olQsp8uxU4VvRCMiRk9ftzFDGb61aw==", + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.6.tgz", + "integrity": "sha512-yq3qTy23u++8zdvf+h4mz4ohDFi681JAkMZZPTKh8zmUVh0AKLisFlgxcn22FMNowXz15oJ6pqgwT7DJ+PdJvg==", "dependencies": { "@grpc/proto-loader": "^0.7.8", "@types/node": ">=12.12.47" @@ -1563,9 +1563,9 @@ } }, "node_modules/@mobicoop/configuration-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@mobicoop/configuration-module/-/configuration-module-2.0.0.tgz", - "integrity": "sha512-Dncb+jrU5x7nDlpoEw9IvYYRI2pNW0iadG//vh04mmgaRJS84LmWKZSvMT/LQ2fZtafqHTHlNga78bN5Be2/Pg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@mobicoop/configuration-module/-/configuration-module-3.0.0.tgz", + "integrity": "sha512-oYRpOBRQbrM8SQGsKrXaf3qbKDZwUGrPkvZAcVIT6zQydjbgLv8ev89gKfyZb3ouLfvtFdVQUmkP9GkFz4+xRg==", "dependencies": { "@golevelup/nestjs-rabbitmq": "^4.0.0", "@nestjs/cqrs": "^10.2.6", @@ -2522,9 +2522,9 @@ } }, "node_modules/@types/jest": { - "version": "29.5.5", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.5.tgz", - "integrity": "sha512-ebylz2hnsWR9mYvmBFbXJXr+33UPc4+ZdxyDXh5w0FlPBTfCVN3wPL+kuOiQt3xvrK419v7XWeAs+AeOksafXg==", + "version": "29.5.6", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.6.tgz", + "integrity": "sha512-/t9NnzkOpXb4Nfvg17ieHE6EeSjDS2SGSpNYfoLbUAeL/EOueU/RSdOWFpfQTXBEM7BguYW1XQ0EbM+6RlIh6w==", "dev": true, "dependencies": { "expect": "^29.0.0", diff --git a/package.json b/package.json index 7b71d53..76ea6f5 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,10 @@ "migrate:deploy": "npx prisma migrate deploy" }, "dependencies": { - "@grpc/grpc-js": "^1.9.5", + "@grpc/grpc-js": "^1.9.6", "@grpc/proto-loader": "^0.7.10", "@songkeys/nestjs-redis": "^10.0.0", - "@mobicoop/configuration-module": "^2.0.0", + "@mobicoop/configuration-module": "^3.0.0", "@mobicoop/ddd-library": "^2.0.0", "@mobicoop/health-module": "^2.3.1", "@mobicoop/message-broker-module": "^2.1.1", @@ -61,7 +61,7 @@ "@nestjs/cli": "^10.1.18", "@nestjs/schematics": "^10.0.2", "@nestjs/testing": "^10.2.7", - "@types/jest": "^29.5.5", + "@types/jest": "^29.5.6", "@types/node": "^20.8.6", "@types/uuid": "^9.0.5", "eslint": "^8.51.0", diff --git a/src/app.module.ts b/src/app.module.ts index ec9eb91..471305f 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -39,16 +39,21 @@ import { ) as string, messageBroker: { uri: configService.get('MESSAGE_BROKER_URI') as string, - exchange: configService.get( - 'MESSAGE_BROKER_EXCHANGE', - ) as string, + exchange: { + name: configService.get( + 'MESSAGE_BROKER_EXCHANGE', + ) as string, + durable: configService.get( + 'MESSAGE_BROKER_EXCHANGE', + ) as boolean, + }, }, redis: { host: configService.get('REDIS_HOST') as string, password: configService.get('REDIS_PASSWORD'), port: configService.get('REDIS_PORT') as number, }, - setConfigurationBrokerQueue: SERVICE_CONFIGURATION_SET_QUEUE, + setConfigurationQueue: SERVICE_CONFIGURATION_SET_QUEUE, deleteConfigurationQueue: SERVICE_CONFIGURATION_DELETE_QUEUE, propagateConfigurationQueue: SERVICE_CONFIGURATION_PROPAGATE_QUEUE, }),