mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: loading of emailtemplates
This commit is contained in:
		
							parent
							
								
									86cbd58487
								
							
						
					
					
						commit
						f261f546cc
					
				| @ -162,10 +162,7 @@ export class EmailService { | ||||
|         templateName: string, | ||||
|         format: TemplateFormat, | ||||
|     ): string { | ||||
|         let topPath = path.resolve('mailtemplates'); | ||||
|         if (!existsSync(topPath)) { | ||||
|             topPath = path.resolve('dist', 'mailtemplates'); | ||||
|         } | ||||
|         const topPath = path.resolve(__dirname, '../../mailtemplates'); | ||||
|         const template = path.join( | ||||
|             topPath, | ||||
|             templateName, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user