Include closed QR events in webhook log endpoint
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
This commit is contained in:
@@ -194,6 +194,7 @@ Access / ops notes (prod)
|
||||
- Service: `TrisolarisServer.service` (systemd). `systemctl cat TrisolarisServer.service`.
|
||||
- Deploy path: `/opt/deploy/TrisolarisServer` (runs `build/libs/*.jar`).
|
||||
- Active profile: `prod` (see service Environment=SPRING_PROFILES_ACTIVE=prod).
|
||||
- DB (prod): PostgreSQL `trisolaris` on `localhost:5432` (see `/opt/deploy/TrisolarisServer/src/main/resources/application-prod.properties`).
|
||||
- DB (dev): PostgreSQL `trisolaris` on `192.168.1.53:5432` (see `application-dev.properties`).
|
||||
- DB (prod): PostgreSQL `trisolaris` on `localhost:5432` (see `/opt/deploy/TrisolarisServer/src/main/resources/application-prod.properties` on the server).
|
||||
- DB (dev): PostgreSQL `trisolaris` on `192.168.1.53:5432` (see `application-dev.properties` in the repo).
|
||||
- DB access (server): `sudo -u postgres psql -d trisolaris`.
|
||||
- Workflow: Always run build, commit, and push for changes unless explicitly told otherwise.
|
||||
|
||||
@@ -247,16 +247,14 @@ class RazorpayQrPayments(
|
||||
val eventQrId = qrEntity.path("id").asText(null)
|
||||
if (eventQrId != qrId) continue
|
||||
val status = qrEntity.path("status").asText(null)
|
||||
if (status == "active") {
|
||||
out.add(
|
||||
RazorpayQrEventResponse(
|
||||
event = event,
|
||||
qrId = eventQrId,
|
||||
status = status,
|
||||
receivedAt = log.receivedAt.toString()
|
||||
)
|
||||
out.add(
|
||||
RazorpayQrEventResponse(
|
||||
event = event,
|
||||
qrId = eventQrId,
|
||||
status = status,
|
||||
receivedAt = log.receivedAt.toString()
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user