Compare commits

..

No commits in common. "4c325ed4f73b315f24c924664e3aed380503b9c3" and "396a0e64024121ab69d280037aa840a8637c669b" have entirely different histories.

3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@teacinema/common", "name": "@teacinema/common",
"version": "1.1.3", "version": "1.1.2",
"description": "Common library for TeaCinema microservices", "description": "Common library for TeaCinema microservices",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

View File

@ -21,6 +21,7 @@ export class GrpcModule {
return { return {
provide: `${GRPC_CLIENT_PREFIX}_${token}`, provide: `${GRPC_CLIENT_PREFIX}_${token}`,
useFactory: (factory: GrpcClientFactory, config: ConfigService) => { useFactory: (factory: GrpcClientFactory, config: ConfigService) => {
console.log('config', config)
const url = config.getOrThrow<string>(cfg.env) const url = config.getOrThrow<string>(cfg.env)
const client = factory.createClient({ const client = factory.createClient({
url, url,

View File

@ -7,7 +7,7 @@ export const GRPC_CLIENTS = {
env: 'AUTH_GRPC_URL' env: 'AUTH_GRPC_URL'
}, },
ACCOUNT_PACKAGE: { ACCOUNT_PACKAGE: {
package: 'account.v1', package: 'auth.v1',
protoPath: PROTO_PATHS.ACCOUNT, protoPath: PROTO_PATHS.ACCOUNT,
env: 'AUTH_GRPC_URL' env: 'AUTH_GRPC_URL'
}, },