fix edit rss ui

This commit is contained in:
Hongbo Wu
2023-07-20 13:35:43 +08:00
parent 392c2e2032
commit 7ceb96a93e
2 changed files with 55 additions and 26 deletions

View File

@ -582,6 +582,21 @@ export const enqueueRssFeedFetch = 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) {
// Calling the handler function directly.
setTimeout(() => {
axios
.post(env.queue.rssFeedTaskHandlerUrl, payload, {
headers,
})
.catch((error) => {
console.error(error)
})
}, 0)
return nanoid()
}
const createdTasks = await createHttpTaskWithToken({
project: GOOGLE_CLOUD_PROJECT,
queue: 'omnivore-rss-queue',