Compare commits

..

No commits in common. "69a2cf4eac84cdbf19b42ed95654748025af737e" and "102ab08f74af6efe378d954760d0bf4d9b459f53" have entirely different histories.

View File

@ -1,14 +1,11 @@
import { NDKEvent } from '@nostr-dev-kit/ndk'
import { validateJobRequest } from '../validations/index.js'
import { inProgress } from '../jobs/reactions/in-progress.js'
import { log } from '../main.js'
export async function onNewSummarizationJob(event: NDKEvent): Promise<void> {
console.log('New summarization job')
await validateJobRequest(event).catch((err) =>
log(`Job validation error: `, err)
)
await validateJobRequest(event)
inProgress(event).catch((err) => log('Processing event error: ', err))
inProgress(event)
}