Skip to content

Commit

Permalink
checkout-api: fixing proto path to load
Browse files Browse the repository at this point in the history
  • Loading branch information
jurabek committed Dec 30, 2023
1 parent 590ae88 commit 09afc13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/services/checkout-api/src/cart/cartService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 09afc13

Please sign in to comment.