Skip to content

Commit

Permalink
[paymentservice] Bump dependencies (#1854)
Browse files Browse the repository at this point in the history
* [paymentservice] Bump dependencies

* Apply suggestion
  • Loading branch information
julianocosta89 authored Dec 19, 2024
1 parent 37b9ed2 commit 623c0e4
Show file tree
Hide file tree
Showing 4 changed files with 957 additions and 1,006 deletions.
4 changes: 2 additions & 2 deletions src/paymentservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0


FROM node:21-alpine AS build
FROM node:22-alpine AS build

WORKDIR /usr/src/app/

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

# -----------------------------------------------------------------------------

FROM node:21-alpine
FROM node:22-alpine

USER node
WORKDIR /usr/src/app/
Expand Down
6 changes: 2 additions & 4 deletions src/paymentservice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function chargeServiceHandler(call, callback) {
try {
const amount = call.request.amount
span.setAttributes({
'app.payment.amount': parseFloat(`${amount.units}.${amount.nanos}`)
'app.payment.amount': parseFloat(`${amount.units}.${amount.nanos}`).toFixed(2)
})
logger.info({ request: call.request }, "Charge request received.")

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

logger.info(`PaymentService gRPC server started on port ${port}`)
server.start()
}
)
})

process.once('SIGINT', closeGracefully)
process.once('SIGTERM', closeGracefully)
Loading

0 comments on commit 623c0e4

Please sign in to comment.