feat: centralize grpc client registration
All checks were successful
Publish / Publish Job (push) Successful in 44s

This commit is contained in:
Дмитрий
2026-04-11 13:43:58 +03:00
parent ecf1704eb1
commit 4fc1514ed7
9 changed files with 1300 additions and 343 deletions

View File

@@ -0,0 +1 @@
export * from './inject-grpc-client.decorator'

View File

@@ -0,0 +1,6 @@
import { Inject } from '@nestjs/common'
import { GRPC_CLIENT_PREFIX } from '../constants/grpc.constants'
export const InjectGrpcClient = (name: string) =>
Inject(`${GRPC_CLIENT_PREFIX}_${name}`)