Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbutongit committed Aug 23, 2023
1 parent fc79284 commit 280f21c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export async function findAllReminderEvents({

export async function findAllReminderAudits({
annualReviewReference,
itemId,
annualReveiwStartDate,
}: GetReminderEventsOptions) {
const andCondition = [
Expand All @@ -68,14 +67,6 @@ export async function findAllReminderAudits({
equals: annualReviewReference,
},
},
{
...(itemId && {
jsonData: {
path: ["itemId"],
equals: itemId,
},
}),
},
{
...(annualReveiwStartDate && {
createdAt: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ select cast("jsonData"->>'itemId' as int) "itemId",
jsonb_build_object(
'itemId', "jsonData"->'itemId',
'reference', "jsonData"->'annualReviewRef',
'annualReviewRef', "jsonData"->'annualReviewRef'
'eventName', "jsonData"->'eventName',
'reminderType', "jsonData"->'reminderType',
'reference', "jsonData"->'annualReviewRef'
),
case
when "jsonData"->>'reminderType' = 'sendStartedProviderEmail' then 'started'::"AnnualReviewProviderEmailType"
Expand Down

0 comments on commit 280f21c

Please sign in to comment.