Skip to content

Commit

Permalink
docs, tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbutongit committed Aug 23, 2023
1 parent 47582a1 commit d2024ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export function isEmailSentBefore(event: Audit | undefined, reminderType: Remind
return false;
}

/**
* Determines whether `emailType` should be sent for `annualReviewReference`.
* All annual review audits or events are recorded with the {@link annualReviewReference} or `reference` from `{@link List.jsonData.currentAnnualReview.reference}`.
*/
export async function shouldSend(
emailType: AnnualReviewProviderEmailType,
listItemId: number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ select cast("jsonData"->>'itemId' as int) "itemId",
jsonb_build_object(
'itemId', "jsonData"->'itemId',
'reference', "jsonData"->'annualReviewRef',
'annualReviewRef', "jsonData"->'annualReviewRef'
'annualReviewRef', "jsonData"->'annualReviewRef',
'eventName', "jsonData"->'eventName',
'reminderType', "jsonData"->'reminderType',
),
Expand Down

0 comments on commit d2024ce

Please sign in to comment.