medusa-plugin-ses 2.0.0 → 2.0.1
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.
- package/package.json +1 -1
- package/services/ses.js +1 -1
- package/src/services/ses.js +1 -1
package/package.json
CHANGED
package/services/ses.js
CHANGED
|
@@ -295,7 +295,7 @@ var SESService = /*#__PURE__*/function (_NotificationService) {
|
|
|
295
295
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
296
296
|
while (1) switch (_context3.prev = _context3.next) {
|
|
297
297
|
case 0:
|
|
298
|
-
base = _path["default"].resolve(__dirname, '
|
|
298
|
+
base = _path["default"].resolve(__dirname, '../../../', this.options_.template_path, templateId); // The absolute path below is useful when using yarn link or npm link
|
|
299
299
|
//const base = path.resolve(this.options_.template_path, templateId)
|
|
300
300
|
subjectTemplate = _handlebars["default"].compile(_fs["default"].readFileSync(_path["default"].join(base, 'subject.hbs'), "utf8"));
|
|
301
301
|
htmlTemplate = _handlebars["default"].compile(_fs["default"].readFileSync(_path["default"].join(base, 'html.hbs'), "utf8"));
|
package/src/services/ses.js
CHANGED
|
@@ -227,7 +227,7 @@ class SESService extends NotificationService {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
async compileTemplate(templateId, data) {
|
|
230
|
-
const base = path.resolve(__dirname, '
|
|
230
|
+
const base = path.resolve(__dirname, '../../../', this.options_.template_path, templateId)
|
|
231
231
|
// The absolute path below is useful when using yarn link or npm link
|
|
232
232
|
//const base = path.resolve(this.options_.template_path, templateId)
|
|
233
233
|
const subjectTemplate = Handlebars.compile(fs.readFileSync(path.join(base, 'subject.hbs'), "utf8"))
|