0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Updated mega's sendTestEmail JSDoc

no issue

- The "memberSegment" parameter is optional, marked it as such to remove type check errors
This commit is contained in:
Naz 2021-09-02 13:10:57 +04:00
parent 26f419f085
commit cea2facfe8

View file

@ -74,7 +74,7 @@ const getEmailData = async (postModel, options) => {
* @param {Object} postModel - post model instance
* @param {[string]} toEmails - member email addresses to send email to
* @param {ValidAPIVersion} apiVersion - api version to be used when serializing email data
* @param {ValidMemberSegment} memberSegment
* @param {ValidMemberSegment} [memberSegment]
*/
const sendTestEmail = async (postModel, toEmails, apiVersion, memberSegment) => {
let emailData = await getEmailData(postModel, {apiVersion});