Fixed banner seed.
This commit is contained in:
@@ -7431,6 +7431,7 @@ const sites = [
|
||||
{
|
||||
name: 'Caprice Casting',
|
||||
slug: 'capricecasting',
|
||||
delete: true,
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/caprice-casting',
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
@@ -7447,9 +7448,10 @@ const sites = [
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
{
|
||||
name: 'Nassty',
|
||||
slug: 'nassty',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/nassty',
|
||||
name: 'NasstyX',
|
||||
slug: 'nasstyx',
|
||||
rename: 'nassty',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/nasstyx',
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
{
|
||||
@@ -7467,6 +7469,7 @@ const sites = [
|
||||
{
|
||||
name: 'Public Sex',
|
||||
slug: 'publicsex',
|
||||
delete: true,
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/public-sex',
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
@@ -7479,6 +7482,7 @@ const sites = [
|
||||
{
|
||||
name: 'Sex Lessons',
|
||||
slug: 'sexlessons',
|
||||
delete: true,
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/sexlessons',
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
@@ -7491,14 +7495,14 @@ const sites = [
|
||||
{
|
||||
name: 'Little Caprice VR',
|
||||
slug: 'littlecapricevr',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/virtual-reality-little-caprice',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/virtual-reality',
|
||||
tags: ['vr'],
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
{
|
||||
name: 'We Cum To You',
|
||||
slug: 'wecumtoyou',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/wecumtoyou-swingers',
|
||||
url: 'https://www.littlecaprice-dreams.com/collection/wecumtoyou',
|
||||
tags: ['swinging', 'orgy'],
|
||||
parent: 'littlecapricedreams',
|
||||
},
|
||||
|
||||
@@ -996,6 +996,10 @@ async function scan(dir) {
|
||||
}
|
||||
|
||||
function getAffiliateId(affiliate) {
|
||||
if (!affiliate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (affiliate.id) {
|
||||
return affiliate.id;
|
||||
}
|
||||
@@ -1030,14 +1034,15 @@ exports.seed = async (knex) => {
|
||||
network: network === 'banners' ? channel : network,
|
||||
channel: network === 'banners' ? null : channel,
|
||||
affiliateId,
|
||||
affiliate: affiliate?.id,
|
||||
affiliate: getAffiliateId(affiliate),
|
||||
banner,
|
||||
width: Number(width),
|
||||
height: Number(height),
|
||||
type,
|
||||
tags,
|
||||
};
|
||||
}).filter((banner) => !!banner.affiliate);
|
||||
// }).filter((banner) => !!banner.affiliate);
|
||||
});
|
||||
|
||||
await Promise.all([
|
||||
knex('campaigns').delete(),
|
||||
|
||||
Reference in New Issue
Block a user