fix: formatted transaction type

This commit is contained in:
Ahmed Bouhuolia
2025-06-15 15:22:19 +02:00
parent bcae2dae03
commit bbf9ef9bc2
29 changed files with 248 additions and 67 deletions

View File

@@ -2,6 +2,6 @@ import * as path from 'path';
import * as pug from 'pug';
export function templateRender(filePath: string, options: Record<string, any>) {
const basePath = path.join(global.__resources_dir, '/views');
return pug.renderFile(`${basePath}/${filePath}.pug`, options);
const templatePath = path.join(global.__views_dirname, `${filePath}.pug`);
return pug.renderFile(templatePath, options);
}