Added parameter affiliates.

This commit is contained in:
DebaucheryLibrarian
2021-07-12 01:41:18 +02:00
parent 8967907893
commit 488d1082e4
6 changed files with 27 additions and 3 deletions

View File

@@ -7,6 +7,12 @@ const affiliates = [
url: 'https://join.archangelvideo.com/track/MzQ3LjEuMS4xLjAuMC4wLjAuMA',
comment: 'revshare',
},
{
id: 'kink_params',
network: 'kink',
parameters: 't=eyJhZmZpbGlhdGUiOiJEZWJhdWNoZXJ5TGliIiwiY2FtcGFpZ24iOiJkZWZhdWx0IiwiYWdldmVyaWZpZWQiOiJ5In0',
comment: '50%',
},
];
const banners = [
@@ -465,7 +471,7 @@ const campaigns = [
},
{
network: 'kink',
url: 'https://www.kink.com/shoots/latest?t=eyJhZmZpbGlhdGUiOiJEZWJhdWNoZXJ5TGliIiwiY2FtcGFpZ24iOiJkZWZhdWx0IiwiYWdldmVyaWZpZWQiOiJ5In0',
affiliate: 'kink_params',
comment: '50%',
},
{
@@ -673,6 +679,7 @@ exports.seed = async knex => Promise.resolve()
id: affiliate.id,
entity_id: networksBySlug[affiliate.network]?.id || channelsBySlug[affiliate.channel]?.id || null,
url: affiliate.url,
parameters: affiliate.parameters,
comment: affiliate.comment,
}));