update the env var name

This commit is contained in:
Hongbo Wu
2024-08-22 12:27:26 +08:00
parent fe87d23a91
commit 3cd3817569

View File

@ -349,8 +349,9 @@ const fetchContentAndCreateItem = async (
}
try {
const useContentFetchQueue = process.env.USE_CONTENT_FETCH_QUEUE === 'true'
if (useContentFetchQueue) {
const contentFetchQueueEnabled =
process.env.CONTENT_FETCH_QUEUE_ENABLED === 'true'
if (contentFetchQueueEnabled) {
return await enqueueFetchContentJob(data)
}