Weekly Digest — Marisol Vega
Unpublished changes
100%
JS rankPosts
Run JS block (javascript)
1
2
3
4
5
6
7
8
9
10
11
12
13
const raw = input.items ?? []; const live = raw.filter(i => i.score > 40); if (live.length === 0) { console.warn('no posts cleared'); return []; } // rank the top stories const ranked = []; for (const {title, url} of live) { ranked.push({title, url});
{ } dispatchDigest
HTTPRequest (webapi)
Action type
POST
URL
https://api.conduitflow.dev/v1/pipelines/sendDigest
startTrigger fetchTopPosts fetchPostDetails rankPosts buildDigestBody dispatchDigest
JS logDelivery
Run JS block (javascript)
1
console.log('Digest queued')
Success:
1{ 2 "isRunning": false, 3 "metadata": null, 4 "queuedAt": null, 5 "deliveredAt": null 6}