From c74944711eb583f1d59ee48c8a4380d4c3aa4e24 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Sun, 1 Feb 2026 12:12:27 +0530 Subject: [PATCH] Include closed QR events in webhook log endpoint --- AGENTS.md | 5 +++-- .../controller/RazorpayQrPayments.kt | 16 +++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 5486f2b..0de486b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. diff --git a/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayQrPayments.kt b/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayQrPayments.kt index 584c4ff..e22fec4 100644 --- a/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayQrPayments.kt +++ b/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayQrPayments.kt @@ -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 }