fix pocket paginated api

This commit is contained in:
Hongbo Wu
2023-06-16 18:11:31 +08:00
parent fab9064696
commit 0d8a3f7346
3 changed files with 28 additions and 9 deletions

View File

@ -480,7 +480,17 @@ export const enqueueImportFromIntegration = async (
}
// If there is no Google Cloud Project Id exposed, it means that we are in local environment
if (env.dev.isLocal || !GOOGLE_CLOUD_PROJECT) {
return nanoid()
// Calling the handler function directly.
setTimeout(() => {
axios
.post(`${env.queue.integrationTaskHandlerUrl}/import`, payload, {
headers,
})
.catch((error) => {
console.error(error)
})
}, 0)
return ''
}
const createdTasks = await createHttpTaskWithToken({