diff --git a/CHANGELOG.md b/CHANGELOG.md index ee77c17..487af73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/). +## Version 1.0.2 - tbd + +### Fixed + +- Correctly retrieve `appId` from the `VCAP_APPLICATION` environment variable + ## Version 1.0.1 - 2025-08-05 ### Fixed diff --git a/package.json b/package.json index 863a8d5..67e393c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/audit-logging", - "version": "1.0.1", + "version": "1.0.2", "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.", "repository": "cap-js/audit-logging", "author": "SAP SE (https://www.sap.com)", diff --git a/srv/log2alsng.js b/srv/log2alsng.js index 3208884..e290cbf 100644 --- a/srv/log2alsng.js +++ b/srv/log2alsng.js @@ -12,7 +12,7 @@ module.exports = class AuditLog2ALSNG extends AuditLogService { this._vcap = JSON.parse(process.env.VCAP_SERVICES || '{}') this._userProvided = this._vcap['user-provided']?.find(obj => obj.tags.includes('auditlog-ng')) || {} if (!this._userProvided.credentials) throw new Error('No credentials found for SAP Audit Log Service NG') - this._vcapApplication = this._vcap['VCAP_APPLICATION'] || {} + this._vcapApplication = JSON.parse(process.env.VCAP_APPLICATION || '{}') } async init() {