Add store/email/phone filtering, richer call-line formatting, CDR feed pagination and queueing, and split Jira poller enrichment into testable modules. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
// services/jiraPoller/formatBody.js
|
|
|
|
/**
|
|
* @param {Array<{title: string, markdown: string}>} sections
|
|
* @returns {string}
|
|
*/
|
|
export function formatEnrichmentBody(sections) {
|
|
return (sections || [])
|
|
.map((s) => `## ${s.title}\n\n${s.markdown}`)
|
|
.join('\n\n');
|
|
}
|