fix(server/middleware): ficmas middleware scans the current year instead of what's in the .env file
				
					
				
			truly automatic!
This commit is contained in:
		
							parent
							
								
									2f60479ad2
								
							
						
					
					
						commit
						f235d7da44
					
				| @ -11,7 +11,7 @@ export default eventHandler(async (event) => { | ||||
| 		fmfilt.isAnniversary = true; | ||||
| 		fmfilt.year = y; | ||||
| 	} else if (new Date() < new Date(Date.parse("Dec 25 " + y))) { | ||||
| 		fmfilt.year = process.env.YEAR; | ||||
| 		fmfilt.year = y; | ||||
| 		fmfilt.isAnniversary = false; | ||||
| 	} else { | ||||
| 		fmfilt.keythatdoesntexist = { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user