@ikonintegration/ikapi 5.0.13 → 5.0.14
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/src/Mailer/Mailer.ts +5 -2
package/package.json
CHANGED
package/src/Mailer/Mailer.ts
CHANGED
|
@@ -131,11 +131,14 @@ export default class Mailer {
|
|
|
131
131
|
send: true,
|
|
132
132
|
})
|
|
133
133
|
//
|
|
134
|
-
let resp = null
|
|
134
|
+
let resp: any = null
|
|
135
135
|
try {
|
|
136
136
|
const chosenTemplate = await this.chooseTemplate(templates, data)
|
|
137
137
|
resp = await email.send({ template: chosenTemplate, locals: data })
|
|
138
|
-
console.debug(
|
|
138
|
+
console.debug(
|
|
139
|
+
'Mailer resp suppressed due to raw size:',
|
|
140
|
+
typeof resp === 'object' ? resp?.messageId : 'resp not recognized'
|
|
141
|
+
)
|
|
139
142
|
} catch (e) {
|
|
140
143
|
console.error('Mailer error:', e)
|
|
141
144
|
throw e
|