mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update digest mock data
This commit is contained in:
parent
a47a5a7d9c
commit
521698646d
2 changed files with 9 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Reference in a new issue