Skip to content

Commit 623c0e4

Browse files
[paymentservice] Bump dependencies (#1854)
* [paymentservice] Bump dependencies * Apply suggestion
1 parent 37b9ed2 commit 623c0e4

File tree

4 files changed

+957
-1006
lines changed

4 files changed

+957
-1006
lines changed

src/paymentservice/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44

5-
FROM node:21-alpine AS build
5+
FROM node:22-alpine AS build
66

77
WORKDIR /usr/src/app/
88

@@ -12,7 +12,7 @@ RUN apk add --no-cache python3 make g++ && npm ci --omit=dev
1212

1313
# -----------------------------------------------------------------------------
1414

15-
FROM node:21-alpine
15+
FROM node:22-alpine
1616

1717
USER node
1818
WORKDIR /usr/src/app/

src/paymentservice/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function chargeServiceHandler(call, callback) {
1414
try {
1515
const amount = call.request.amount
1616
span.setAttributes({
17-
'app.payment.amount': parseFloat(`${amount.units}.${amount.nanos}`)
17+
'app.payment.amount': parseFloat(`${amount.units}.${amount.nanos}`).toFixed(2)
1818
})
1919
logger.info({ request: call.request }, "Charge request received.")
2020

@@ -51,9 +51,7 @@ server.bindAsync(`0.0.0.0:${process.env['PAYMENT_SERVICE_PORT']}`, grpc.ServerCr
5151
}
5252

5353
logger.info(`PaymentService gRPC server started on port ${port}`)
54-
server.start()
55-
}
56-
)
54+
})
5755

5856
process.once('SIGINT', closeGracefully)
5957
process.once('SIGTERM', closeGracefully)

0 commit comments

Comments
 (0)