Changed affiliate parameters from query string to JSON.
This commit is contained in:
parent
856601d1d9
commit
58ada146a9
|
|
@ -0,0 +1,22 @@
|
|||
exports.up = async (knex) => {
|
||||
await knex('affiliates')
|
||||
.update('parameters', null);
|
||||
|
||||
await knex.schema.alterTable('affiliates', (table) => {
|
||||
table.dropUnique(['entity_id', 'parameters']);
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('affiliates', (table) => {
|
||||
table.json('parameters')
|
||||
.alter();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async (knex) => {
|
||||
await knex.schema.alterTable('affiliates', (table) => {
|
||||
table.string('parameters')
|
||||
.alter();
|
||||
|
||||
table.unique(['entity_id', 'parameters']);
|
||||
});
|
||||
};
|
||||
|
|
@ -105,7 +105,6 @@ const affiliates = [
|
|||
id: 'evilangel',
|
||||
network: 'evilangel',
|
||||
url: 'https://www.g2fame.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',
|
||||
parameters: 'nats=OTczLjEuMy4zLjAuMC4wLjAuMA',
|
||||
comment: '50% rev share',
|
||||
},
|
||||
// kelly madison / 8k
|
||||
|
|
@ -113,56 +112,48 @@ const affiliates = [
|
|||
id: '_kellymadison',
|
||||
network: 'kellymadison',
|
||||
url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: 'kellymadison',
|
||||
channel: 'kellymadison',
|
||||
url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: 'teenfidelity',
|
||||
channel: 'teenfidelity',
|
||||
url: 'https://www2.teenfidelity.com/track/MTAxOTE0LjYuNS42LjAuNjAwNTA0OC4wLjAuMA',
|
||||
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: 'pornfidelity',
|
||||
channel: 'pornfidelity',
|
||||
url: 'https://www2.pornfidelity.com/track/MTAxOTE0LjYuMy4zLjAuNjAwNDk3MS4wLjAuMA',
|
||||
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: '5kporn',
|
||||
channel: '5kporn',
|
||||
url: 'https://www2.5kporn.com/track/NzgwLjEuMS4xLjAuMC4wLjAuMA',
|
||||
parameters: 'nats=NzgwLjEuMS4xLjAuMC4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: '5kteens',
|
||||
channel: '5kteens',
|
||||
url: 'https://www2.5kteens.com/track/NzgwLjEuMi4yLjAuMC4wLjAuMA',
|
||||
parameters: 'nats=NzgwLjEuMi4yLjAuMC4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: '8kmilfs',
|
||||
channel: '8kmilfs',
|
||||
url: 'https://www2.8kmilfs.com/track/NzgwLjEuNC40LjAuMC4wLjAuMA',
|
||||
parameters: 'nats=NzgwLjEuNC40LjAuMC4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
{
|
||||
id: '8kteens',
|
||||
channel: '8kteens',
|
||||
url: 'https://www2.8kteens.com/track/NzgwLjEuNS41LjAuMC4wLjAuMA',
|
||||
parameters: 'nats=NzgwLjEuNS41LjAuMC4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
// jules jordan
|
||||
|
|
@ -203,23 +194,27 @@ const affiliates = [
|
|||
url: 'https://enter.tonightsgirlfriend.com/track/MTIzODIxLjEwMDI1LjU4LjgwLjAuMC4wLjAuMA',
|
||||
comment: 'pay per sign-up',
|
||||
},
|
||||
// etc
|
||||
{
|
||||
id: 'archangel',
|
||||
channel: 'archangel',
|
||||
url: 'https://join.archangelvideo.com/track/MzQ3LjEuMS4xLjAuMC4wLjAuMA',
|
||||
comment: 'revshare',
|
||||
id: 'realgirlsnow',
|
||||
channel: 'realgirlsnow',
|
||||
url: 'https://enter.realgirlsnow.com/track/MTIzODIxLjEwMDI1LjExMy4zNzkuMC4wLjAuMC4w',
|
||||
comment: 'pay per sign-up',
|
||||
parameters: {
|
||||
scene: false,
|
||||
},
|
||||
},
|
||||
// etc
|
||||
{
|
||||
id: 'kink',
|
||||
network: 'kink',
|
||||
parameters: 't=eyJhZmZpbGlhdGUiOiJEZWJhdWNoZXJ5TGliIiwiY2FtcGFpZ24iOiJkZWZhdWx0IiwiYWdldmVyaWZpZWQiOiJ5In0',
|
||||
comment: '50%',
|
||||
},
|
||||
{
|
||||
id: 'bang',
|
||||
network: 'bang',
|
||||
parameters: 'aff=eyJ3IjoiMTQ1ODYiLCJsIjoiMzE2NDYiLCJ0IjoiNDU4NjEifQ==', // supported
|
||||
parameters: {
|
||||
query: 'aff=eyJ3IjoiMTQ1ODYiLCJsIjoiMzE2NDYiLCJ0IjoiNDU4NjEifQ==', // supported
|
||||
},
|
||||
comment: '$25 per signup',
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue