winston-mail
winston-mail copied to clipboard
Metadata is not attached to emails.
Hi,
I have been trying to get any metadata into the emails, using html: true or false etc, no option sets work but upon reading the code for the transport, you test for Winston version >= 3 and if so you then remove metadata as an argument and say you only have two arguments 'info and callback', but actually it was callback on log that was removed in Winston 3 - not the metadata arg.
I am going to have to edit the lib manually for my use now, if you agree that this is incorrect then I can submit a PR if required or whatever, as its just a quick fix you may do it yourself and let me know so I can update my version.
Thanks, Jed.
Thanks for reporting, sounds like a bug. A PR is welcome.