Use createHttpTask for save operation

This commit is contained in:
Jackson Harper 2024-01-16 15:24:04 +08:00
parent 26657c5611
commit 652f4b6180

View file

@ -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