( videoId: string, editSpec: VideoEditSpec, )
| 592 | } |
| 593 | |
| 594 | function getEditInvalidationCallerReference( |
| 595 | videoId: string, |
| 596 | editSpec: VideoEditSpec, |
| 597 | ) { |
| 598 | const editHash = createHash("sha256") |
| 599 | .update(JSON.stringify(editSpec)) |
| 600 | .digest("hex") |
| 601 | .slice(0, 16); |
| 602 | return `edit-${videoId}-${editHash}`; |
| 603 | } |
| 604 | |
| 605 | async function invalidateEditedVideoCache( |
| 606 | videoId: string, |
no test coverage detected