-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mkaleem.neslit.10140.email digest #10338
base: master
Are you sure you want to change the base?
Conversation
}), | ||
output: z.object({ | ||
threads: z.array(EnrichedThread), | ||
numberOfThreads: z.number(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numberOfThreads seems redundant if same as the length of the threads array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a couple of small details in comments
const sevenDaysAgo = new Date(); | ||
sevenDaysAgo.setDate(new Date().getDate() - 7); | ||
body: async ({ payload }) => { | ||
// TODO User payload for unSubscribe once Recap email pr merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still a todo? If not plz implement this or create a ticket to followup
return { | ||
threads: threads, | ||
numberOfThreads: threads.length, | ||
// unsubscribe_link: TODO : will add once email recap PR got merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz link pr number
@@ -17,4 +17,13 @@ export const TriggerNotificationsWorkflow = { | |||
}), | |||
}; | |||
|
|||
export const enableEmailDigest = { | |||
input: z.object({ | |||
communityId: z.string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
community_id
, plz use snake case as per api convention
}), | ||
output: z.object({ | ||
threads: z.array(EnrichedThread), | ||
numberOfThreads: z.number(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snake_case as per api convention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codewise looks good, didn't test locally.
Link to Issue
Closes: #10140
Description of Changes
For some reason, Liquid doesn't seem to evaluate the variable properly when used with the square bracket notation (communities[name]). Instead, it seems to look for a key literally named test, not the value inside the variable.
the same code work in different Liquid base editor face the issue with "Knock eidtior"
"How We Fixed It"
For some reason, Liquid doesn't seem to evaluate the variable properly when used with the square bracket notation (communities[name]). Instead, it seems to look for a key literally named test, not the value inside the variable.
the same code work in different Liquid base editor face the issue with "Knock eidtior"