remove config module import from content.js and add rebuild-api.sh script for Docker management
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
||||
const { extract } = require('@extractus/article-extractor');
|
||||
const sharp = require('sharp');
|
||||
const config = require('./config');
|
||||
const db = require('./db');
|
||||
const { generateAndStoreEmbedding } = require('./embeddings');
|
||||
const { fetchWithPolicy } = require('./http');
|
||||
@@ -211,7 +210,7 @@ async function fetchAndStoreContent(id, url) {
|
||||
}
|
||||
}
|
||||
|
||||
async function backfillMissingContent(limit = config.contentBackfill.batchSize || 10) {
|
||||
async function backfillMissingContent(limit = 10) {
|
||||
if (contentBackfillRunning) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user