Update for refactored backend, fix errors

master
Sven Slootweg 1 year ago
parent bda3ede67c
commit 9dd0e4937a

@ -30,6 +30,7 @@ let state = {
};
module.exports = {
backend: "postgresql",
database: {
host: "/run/postgresql",
database: "seekseek_documentation"
@ -104,7 +105,7 @@ module.exports = {
// FIXME: Commenting out a bunch of tasks but not removing them from the tag assignments will result in an error, but will *not* exit the program. That's probably not right?
"lcsc:findCategories": {
ttl: "30d",
taskVersion: "1",
version: "1",
run: require("./lib/lcsc/task/find-categories")(state)
},
"lcsc:scrapeCategory": {

@ -19,6 +19,7 @@ module.exports = function lcscScrapeCategory(state) {
assureResponse(response);
assert(response.statusCode === 200);
assert(response.body.productList != null); // Missing from stale queued requests?
assert(response.body.productList.length > 0);
for (let item of response.body.productList) {

Loading…
Cancel
Save