function buildDigest
buildDigest(
readerId: string,
reader: string,
cadence: DigestCadence,
from: Date,
to: Date,
token: string
): DigestContent | null

Returns the digest of user readerId for the period from from to to, or null when it would show nothing. The links are absolute; the unsubscribe one carries token, which turns off cadence.

Parameters

readerId: string
reader: string
from: Date
to: Date
token: string

Return Type

Usage

import { buildDigest } from "api/services/digest-service.ts";