Fixed parent entity relations in seed file. Fixed MindGeek scraper session URL determination.
This commit is contained in:
@@ -540,7 +540,7 @@ exports.seed = knex => Promise.resolve()
|
||||
url: network.url,
|
||||
description: network.description,
|
||||
parameters: network.parameters,
|
||||
parent_id: parentNetworksBySlug[network.parent] || null,
|
||||
parent_id: parentNetworksBySlug[network.parent] || grandParentNetworksBySlug[network.parent] || null,
|
||||
}));
|
||||
|
||||
const networkEntries = await upsert('entities', networksWithParent, ['slug', 'type'], knex);
|
||||
|
||||
Reference in New Issue
Block a user