From 09afc1351f608548b63ac1bc1c0c1bd891479f9e Mon Sep 17 00:00:00 2001 From: jurabek Date: Sat, 30 Dec 2023 14:20:04 +0100 Subject: [PATCH] checkout-api: fixing proto path to load --- src/backend/services/checkout-api/src/cart/cartService.ts | 2 +- src/backend/services/checkout-api/src/payment/paymentService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/services/checkout-api/src/cart/cartService.ts b/src/backend/services/checkout-api/src/cart/cartService.ts index 6a4e3532d..3113a4046 100644 --- a/src/backend/services/checkout-api/src/cart/cartService.ts +++ b/src/backend/services/checkout-api/src/cart/cartService.ts @@ -9,7 +9,7 @@ import { logger } from '../logger'; const packageDefinition = protoLoader.loadSync( - path.resolve(__dirname, '../pb/cart.proto'), + path.resolve(__dirname, '../../pb/cart.proto'), ); const proto = grpc.loadPackageDefinition(packageDefinition) as unknown as ProtoGrpcType; diff --git a/src/backend/services/checkout-api/src/payment/paymentService.ts b/src/backend/services/checkout-api/src/payment/paymentService.ts index da6167d17..4ceaaa8f5 100644 --- a/src/backend/services/checkout-api/src/payment/paymentService.ts +++ b/src/backend/services/checkout-api/src/payment/paymentService.ts @@ -9,7 +9,7 @@ import { PaymentRequest } from '../gen/payment/PaymentRequest'; import { CartItem } from '../gen/cart/CartItem'; const packageDefinition = protoLoader.loadSync( - path.resolve(__dirname, '../pb/payments.proto'), + path.resolve(__dirname, '../../pb/payments.proto'), ); const proto = grpc.loadPackageDefinition(packageDefinition) as unknown as ProtoGrpcType;