mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use createHttpTask for save operation
This commit is contained in:
parent
26657c5611
commit
652f4b6180
1 changed files with 6 additions and 1 deletions
|
|
@ -369,7 +369,12 @@ const createItemWithPreviewContent = async (
|
|||
|
||||
// save page
|
||||
const taskHandlerUrl = `${serviceBaseUrl}svc/following/save?token=${token}`
|
||||
const task = await createCloudTask(taskHandlerUrl, input)
|
||||
const task = await createHttpTaskWithToken({
|
||||
queue: env.queue.name,
|
||||
priority: 'low',
|
||||
taskHandlerUrl: taskHandlerUrl,
|
||||
payload: input,
|
||||
})
|
||||
console.log('Created task', task)
|
||||
|
||||
return !!task
|
||||
|
|
|
|||
Loading…
Reference in a new issue