Skip to content

Commit e4d57d6

Browse files
fix: Correctly retrieve appId from the VCAP_APPLICATION (#178)
Co-authored-by: simeongelovski <166386217+simeongelovski@users.noreply.github.com>
1 parent f6762fd commit e4d57d6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

7+
## Version 1.0.2 - tbd
8+
9+
### Fixed
10+
11+
- Correctly retrieve `appId` from the `VCAP_APPLICATION` environment variable
12+
713
## Version 1.0.1 - 2025-08-05
814

915
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cap-js/audit-logging",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "CDS plugin providing integration to the SAP Audit Log service as well as out-of-the-box personal data-related audit logging based on annotations.",
55
"repository": "cap-js/audit-logging",
66
"author": "SAP SE (https://www.sap.com)",

srv/log2alsng.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = class AuditLog2ALSNG extends AuditLogService {
1212
this._vcap = JSON.parse(process.env.VCAP_SERVICES || '{}')
1313
this._userProvided = this._vcap['user-provided']?.find(obj => obj.tags.includes('auditlog-ng')) || {}
1414
if (!this._userProvided.credentials) throw new Error('No credentials found for SAP Audit Log Service NG')
15-
this._vcapApplication = this._vcap['VCAP_APPLICATION'] || {}
15+
this._vcapApplication = JSON.parse(process.env.VCAP_APPLICATION || '{}')
1616
}
1717

1818
async init() {

0 commit comments

Comments
 (0)