debug email trigger recipient

This commit is contained in:
Shams mosowi
2020-09-01 14:13:16 +10:00
parent 9d2f7a0363
commit fbf3952a5e

View File

@@ -88,6 +88,7 @@ const emailOnUpdate = (config: EmailOnTriggerConfig) =>
if (shouldSend && hasAllRequiredFields) {
const from = await config.from(afterData, db);
const to = await config.to(afterData, db);
console.log(JSON.stringify({ to }));
const msg = {
from,
personalizations: [