* Computes the metadata-based change-detection hash for a recording. * * Grain exposes no `updated_at`/`modified` field, so the hash combines the stable * recording id with `end_datetime` and `duration_ms` — the values that change when a * recording is re-processed or re-cut. The identical formu
(recording: GrainRecording)
| 210 | * listing stub and the fully-fetched document so unchanged recordings are skipped. |
| 211 | */ |
| 212 | function buildContentHash(recording: GrainRecording): string { |
| 213 | return `grain:${recordingId(recording)}:${recording.end_datetime ?? ''}:${recording.duration_ms ?? ''}` |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * Builds the metadata bag attached to both stubs and fetched documents. Keeping a |
no test coverage detected