From 42fe653e1edf7360babc1f6125aacc1304c078be Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:43:25 +0200 Subject: [PATCH] Bugfix/fix cache flush endpoint response (#3641) * Fix cache flush endpoint response * Update changelog --- CHANGELOG.md | 4 ++++ apps/api/src/app/cache/cache.controller.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9582d735e..02b33340b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the language localization for Polish (`pl`) - Upgraded `Nx` from version `19.5.1` to `19.5.6` +### Fixed + +- Fixed the cache flush endpoint response + ## 2.101.0 - 2024-08-03 ### Changed diff --git a/apps/api/src/app/cache/cache.controller.ts b/apps/api/src/app/cache/cache.controller.ts index edfd16c49..4d34a2eff 100644 --- a/apps/api/src/app/cache/cache.controller.ts +++ b/apps/api/src/app/cache/cache.controller.ts @@ -14,6 +14,6 @@ export class CacheController { @Post('flush') @UseGuards(AuthGuard('jwt'), HasPermissionGuard) public async flushCache(): Promise { - return this.redisCacheService.reset(); + await this.redisCacheService.reset(); } }