Fixed parent entity relations in seed file. Fixed MindGeek scraper session URL determination.

This commit is contained in:
DebaucheryLibrarian
2021-01-05 16:27:20 +01:00
parent fd92e7e260
commit 9ca2ec6dd0
3 changed files with 5 additions and 4 deletions

View File

@@ -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);