@platform-x/hep-notification-client 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -379,7 +379,7 @@ class EmailHandler {
|
|
|
379
379
|
const start = moment.tz(reqBody.dateTime, 'UTC'); // original timezone
|
|
380
380
|
let curentTimeZone = start;
|
|
381
381
|
curentTimeZone.tz(reqBody.timezoneOffset).format('Do MMMM YYYY, h:mm a');
|
|
382
|
-
const emailTemplatePath = path_1.default.resolve(__dirname, '
|
|
382
|
+
const emailTemplatePath = path_1.default.resolve(__dirname, 'templates/orderPlaced.ejs');
|
|
383
383
|
const emailTemplate = fs_1.default.readFileSync(emailTemplatePath, 'utf-8');
|
|
384
384
|
let billingStr = '';
|
|
385
385
|
billingStr +=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// test/testRunner.ts
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
const templatePath = path_1.default.resolve(__dirname, 'templates/orderPlaced.ejs');
|
|
10
|
+
console.log('Resolved template path:', templatePath);
|
|
11
|
+
const exists = fs_1.default.existsSync(templatePath);
|
|
12
|
+
console.log('File exists?', exists);
|
|
13
|
+
//# sourceMappingURL=test.index.js.map
|