Rescraping upcoming scenes. Fixed language and scene deep scraping for Dorcel scraper.
This commit is contained in:
@@ -430,6 +430,10 @@ function init(context, selector, window) {
|
||||
|
||||
const element = selector ? context.querySelector(selector) : context;
|
||||
|
||||
if (!element) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const legacyContextFuncs = Object.entries(legacyFuncs) // dynamically attach methods with context
|
||||
.reduce((acc, [key, func]) => ({
|
||||
...acc,
|
||||
|
||||
13
src/utils/update.js
Normal file
13
src/utils/update.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const knex = require('../knex');
|
||||
|
||||
async function init() {
|
||||
const result = await knex.raw('SELECT * FROM json_to_recordset(:ids) AS x(id int)', {
|
||||
ids: JSON.stringify([{ id: 1, foo: 'bar' }, { id: 2 }, { id: 3 }]),
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
init();
|
||||
Reference in New Issue
Block a user