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:
parent
26f419f085
commit
cea2facfe8
1 changed files with 1 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Reference in a new issue