diff --git a/package-lock.json b/package-lock.json index c56301d..a5054fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/user", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/user", - "version": "1.2.0", + "version": "1.2.1", "license": "AGPL", "dependencies": { "@grpc/grpc-js": "^1.9.5", diff --git a/package.json b/package.json index bd71c0b..7e13c92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/user", - "version": "1.2.0", + "version": "1.2.1", "description": "Mobicoop V3 User Service", "author": "sbriat", "private": true, diff --git a/src/app.constants.ts b/src/app.constants.ts index 55408e4..bcf3f6a 100644 --- a/src/app.constants.ts +++ b/src/app.constants.ts @@ -2,6 +2,7 @@ export const SERVICE_NAME = 'user'; // grpc +export const GRPC_PACKAGE_NAME = 'user'; export const GRPC_SERVICE_NAME = 'UserService'; // configuration @@ -11,6 +12,6 @@ export const SERVICE_CONFIGURATION_PROPAGATE_QUEUE = 'user-configuration-propagate'; // health -export const HEALTH_SERVICE_NAME = 'health'; +export const GRPC_HEALTH_PACKAGE_NAME = 'health'; export const HEALTH_USER_REPOSITORY = 'UserRepository'; export const HEALTH_CRITICAL_LOGGING_KEY = 'logging.user.health.crit'; diff --git a/src/main.ts b/src/main.ts index 41728ef..1707796 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { join } from 'path'; import { AppModule } from './app.module'; -import { HEALTH_SERVICE_NAME, SERVICE_NAME } from './app.constants'; +import { GRPC_HEALTH_PACKAGE_NAME, GRPC_PACKAGE_NAME } from './app.constants'; async function bootstrap() { const app = await NestFactory.create(AppModule); @@ -12,7 +12,7 @@ async function bootstrap() { app.connectMicroservice({ transport: Transport.GRPC, options: { - package: [SERVICE_NAME, HEALTH_SERVICE_NAME], + package: [GRPC_PACKAGE_NAME, GRPC_HEALTH_PACKAGE_NAME], protoPath: [ join(__dirname, 'modules/user/interface/grpc-controllers/user.proto'), join(__dirname, 'health.proto'),