update digest mock data

This commit is contained in:
Hongbo Wu 2024-04-12 16:58:56 +08:00
parent a47a5a7d9c
commit 521698646d
2 changed files with 9 additions and 12 deletions

View file

@ -16,19 +16,17 @@ export const processCreateDigestJob = async (data: CreateDigestJobData) => {
// TODO: create digest
const digest = {
url: 'https://example.com',
title: 'Example Digest',
jobState: 'completed',
content: 'This is an example digest',
url: '',
title: '',
content: '<readable html>',
chapters: [
{
title: 'Chapter 1',
},
{
title: 'Chapter 2',
},
{ title: '00:30 - China buying' },
{ title: '10:20 - Twitter for sale' },
],
urlsToAudio: [
'https://storage.google.com/...',
'https://api.omnivore.app/api/digest/audio/<id>',
],
urlsToAudio: ['https://example.com/audio'],
}
// save digest to redis

View file

@ -3,7 +3,6 @@ import { redisDataSource } from '../redis_data_source'
export interface Digest {
url: string
title: string
jobState: string
content: string
chapters: Chapter[]
urlsToAudio: string[]