forked from DebaucheryLibrarian/traxxx
Regarding layout parameters from parent and grandparent entities. Removed Evil Angel and Fantasy Massage scraper wrappers.
This commit is contained in:
@@ -118,6 +118,7 @@ async function fetchIncludedEntities() {
|
||||
SELECT
|
||||
parents.*,
|
||||
json_agg(included_entities ORDER BY included_entities.id) included_children,
|
||||
row_to_json(grandparents) AS parent,
|
||||
(SELECT json_agg(children)
|
||||
FROM entities AS children
|
||||
WHERE children.parent_id = parents.id) children
|
||||
@@ -125,10 +126,12 @@ async function fetchIncludedEntities() {
|
||||
included_entities
|
||||
LEFT JOIN
|
||||
entities AS parents ON parents.id = included_entities.parent_id
|
||||
LEFT JOIN
|
||||
entities AS grandparents ON grandparents.id = parents.parent_id
|
||||
WHERE
|
||||
included_entities.type = 'channel'
|
||||
GROUP BY
|
||||
parents.id;
|
||||
parents.id, grandparents.id;
|
||||
`, include);
|
||||
|
||||
const curatedNetworks = rawNetworks.rows.map(entity => curateEntity(entity, true));
|
||||
|
||||
Reference in New Issue
Block a user