Compare commits
No commits in common. "69a2cf4eac84cdbf19b42ed95654748025af737e" and "102ab08f74af6efe378d954760d0bf4d9b459f53" have entirely different histories.
69a2cf4eac
...
102ab08f74
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user