Browse Source
			
			
			Bugfix/fix cache flush endpoint response (#3641)
			
				* Fix cache flush endpoint response
* Update changelog
			
			
				pull/3647/head
			
			
		 
		
			
				
					
						 Thomas Kaul
					
					1 year ago
						Thomas Kaul
					
					1 year ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
5 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
- 
					
					
					 
					apps/api/src/app/cache/cache.controller.ts
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -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`) |  |  | - Improved the language localization for Polish (`pl`) | 
			
		
	
		
		
			
				
					|  |  | - Upgraded `Nx` from version `19.5.1` to `19.5.6` |  |  | - Upgraded `Nx` from version `19.5.1` to `19.5.6` | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | ### Fixed | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | - Fixed the cache flush endpoint response | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | ## 2.101.0 - 2024-08-03 |  |  | ## 2.101.0 - 2024-08-03 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | ### Changed |  |  | ### Changed | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -14,6 +14,6 @@ export class CacheController { | 
			
		
	
		
		
			
				
					|  |  |   @Post('flush') |  |  |   @Post('flush') | 
			
		
	
		
		
			
				
					|  |  |   @UseGuards(AuthGuard('jwt'), HasPermissionGuard) |  |  |   @UseGuards(AuthGuard('jwt'), HasPermissionGuard) | 
			
		
	
		
		
			
				
					|  |  |   public async flushCache(): Promise<void> { |  |  |   public async flushCache(): Promise<void> { | 
			
		
	
		
		
			
				
					
					|  |  |     return this.redisCacheService.reset(); |  |  |     await this.redisCacheService.reset(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
	
		
		
			
				
					|  | 
 |