Improved showcase query.

This commit is contained in:
DebaucheryLibrarian
2023-06-17 23:31:09 +02:00
parent 236d4a9427
commit 013675d102
4 changed files with 46 additions and 10 deletions

View File

@@ -687,7 +687,7 @@ exports.seed = (knex) => Promise.resolve()
url: network.url,
description: network.description,
has_logo: network.hasLogo,
showcased: network.showcased,
showcased: typeof network.showcased === 'boolean' ? network.showcased : true,
parameters: network.parameters,
parent_id: grandParentNetworksBySlug[network.parent] || null,
}));
@@ -703,7 +703,7 @@ exports.seed = (knex) => Promise.resolve()
url: network.url,
description: network.description,
has_logo: network.hasLogo,
showcased: network.showcased,
showcased: typeof network.showcased === 'boolean' ? network.showcased : true,
parameters: network.parameters,
parent_id: parentNetworksBySlug[network.parent] || grandParentNetworksBySlug[network.parent] || null,
}));