Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/improve error handling in access endpoints (#7392)
Thomas Kaula20d394e0b2c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ac4ba04b5f..3665b66adc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Fixed++- Improved the error handling in the access endpoints (`POST` and `PUT`) to return `400 Bad Request` when granting access to a non-existent user+## 3.31.0 - 2026-07-20### Changeddiff --git a/apps/api/src/app/access/access.controller.ts b/apps/api/src/app/access/access.controller.tsindex 35b1d485b0..d692f358df 100644--- a/apps/api/src/app/access/access.controller.ts+++ b/apps/api/src/app/access/access.controller.ts@@ -87,7 +87,7 @@ export class AccessController {}try {- return this.accessService.createAccess({+ return await this.accessService.createAccess({alias: data.alias || undefined,granteeUser: data.granteeUserId? { connect: { id: data.granteeUserId } }@@ -155,7 +155,7 @@ export class AccessController {}try {- return this.accessService.updateAccess({+ return await this.accessService.updateAccess({data: {alias: data.alias,granteeUser: data.granteeUserId