From 081e845dfd82c01c518576c3b1a5c14d956a8d37 Mon Sep 17 00:00:00 2001 From: akumar Date: Thu, 25 Jul 2024 18:46:51 +0200 Subject: [PATCH] fix: register renderingMeta needed for external Jobs in SCS --- src/worker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/worker.ts b/src/worker.ts index 32cddef..5f25205 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -16,6 +16,9 @@ import { protoMetadata as commandInterfaceMeta, CommandInterfaceServiceDefinitio import { protoMetadata as reflectionMeta } from '@restorecommerce/rc-grpc-clients/dist/generated-server/grpc/reflection/v1alpha/reflection.js'; +import { + protoMetadata as renderingMeta +} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/rendering.js'; import { ServerReflectionService } from 'nice-grpc-server-reflection'; import { BindConfig } from '@restorecommerce/chassis-srv/lib/microservice/transport/provider/grpc/index.js'; import { HealthDefinition } from '@restorecommerce/rc-grpc-clients/dist/generated-server/grpc/health/v1/health.js'; @@ -34,7 +37,8 @@ registerProtoMeta( schedulingMeta, commandInterfaceMeta, reflectionMeta, - resourceBaseMeta // needed for `deleteJobs` event - io.restorecommerce.resourcebase.DeleteRequest + resourceBaseMeta, // needed for `deleteJobs` event - io.restorecommerce.resourcebase.DeleteRequest + renderingMeta // needed for encoding and decoding of render-request messages (used for external jobs in SCS) ); class JobsCommandInterface extends chassis.CommandInterface {