Changed affiliate parameters from query string to JSON.

This commit is contained in:
DebaucheryLibrarian 2026-01-22 03:49:13 +01:00
parent 856601d1d9
commit 58ada146a9
2 changed files with 33 additions and 16 deletions

View File

@ -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']);
});
};

View File

@ -105,7 +105,6 @@ const affiliates = [
id: 'evilangel', id: 'evilangel',
network: 'evilangel', network: 'evilangel',
url: 'https://www.g2fame.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=', 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', comment: '50% rev share',
}, },
// kelly madison / 8k // kelly madison / 8k
@ -113,56 +112,48 @@ const affiliates = [
id: '_kellymadison', id: '_kellymadison',
network: 'kellymadison', network: 'kellymadison',
url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA', url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: 'kellymadison', id: 'kellymadison',
channel: 'kellymadison', channel: 'kellymadison',
url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA', url: 'https://www2.kellymadison.com/track/MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: 'teenfidelity', id: 'teenfidelity',
channel: 'teenfidelity', channel: 'teenfidelity',
url: 'https://www2.teenfidelity.com/track/MTAxOTE0LjYuNS42LjAuNjAwNTA0OC4wLjAuMA', url: 'https://www2.teenfidelity.com/track/MTAxOTE0LjYuNS42LjAuNjAwNTA0OC4wLjAuMA',
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: 'pornfidelity', id: 'pornfidelity',
channel: 'pornfidelity', channel: 'pornfidelity',
url: 'https://www2.pornfidelity.com/track/MTAxOTE0LjYuMy4zLjAuNjAwNDk3MS4wLjAuMA', url: 'https://www2.pornfidelity.com/track/MTAxOTE0LjYuMy4zLjAuNjAwNDk3MS4wLjAuMA',
parameters: 'nats=MTAxOTE0LjYuMS4xLjAuNjAwNDgxMS4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: '5kporn', id: '5kporn',
channel: '5kporn', channel: '5kporn',
url: 'https://www2.5kporn.com/track/NzgwLjEuMS4xLjAuMC4wLjAuMA', url: 'https://www2.5kporn.com/track/NzgwLjEuMS4xLjAuMC4wLjAuMA',
parameters: 'nats=NzgwLjEuMS4xLjAuMC4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: '5kteens', id: '5kteens',
channel: '5kteens', channel: '5kteens',
url: 'https://www2.5kteens.com/track/NzgwLjEuMi4yLjAuMC4wLjAuMA', url: 'https://www2.5kteens.com/track/NzgwLjEuMi4yLjAuMC4wLjAuMA',
parameters: 'nats=NzgwLjEuMi4yLjAuMC4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: '8kmilfs', id: '8kmilfs',
channel: '8kmilfs', channel: '8kmilfs',
url: 'https://www2.8kmilfs.com/track/NzgwLjEuNC40LjAuMC4wLjAuMA', url: 'https://www2.8kmilfs.com/track/NzgwLjEuNC40LjAuMC4wLjAuMA',
parameters: 'nats=NzgwLjEuNC40LjAuMC4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
{ {
id: '8kteens', id: '8kteens',
channel: '8kteens', channel: '8kteens',
url: 'https://www2.8kteens.com/track/NzgwLjEuNS41LjAuMC4wLjAuMA', url: 'https://www2.8kteens.com/track/NzgwLjEuNS41LjAuMC4wLjAuMA',
parameters: 'nats=NzgwLjEuNS41LjAuMC4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
// jules jordan // jules jordan
@ -203,23 +194,27 @@ const affiliates = [
url: 'https://enter.tonightsgirlfriend.com/track/MTIzODIxLjEwMDI1LjU4LjgwLjAuMC4wLjAuMA', url: 'https://enter.tonightsgirlfriend.com/track/MTIzODIxLjEwMDI1LjU4LjgwLjAuMC4wLjAuMA',
comment: 'pay per sign-up', comment: 'pay per sign-up',
}, },
// etc
{ {
id: 'archangel', id: 'realgirlsnow',
channel: 'archangel', channel: 'realgirlsnow',
url: 'https://join.archangelvideo.com/track/MzQ3LjEuMS4xLjAuMC4wLjAuMA', url: 'https://enter.realgirlsnow.com/track/MTIzODIxLjEwMDI1LjExMy4zNzkuMC4wLjAuMC4w',
comment: 'revshare', comment: 'pay per sign-up',
parameters: {
scene: false,
},
}, },
// etc
{ {
id: 'kink', id: 'kink',
network: 'kink', network: 'kink',
parameters: 't=eyJhZmZpbGlhdGUiOiJEZWJhdWNoZXJ5TGliIiwiY2FtcGFpZ24iOiJkZWZhdWx0IiwiYWdldmVyaWZpZWQiOiJ5In0',
comment: '50%', comment: '50%',
}, },
{ {
id: 'bang', id: 'bang',
network: 'bang', network: 'bang',
parameters: 'aff=eyJ3IjoiMTQ1ODYiLCJsIjoiMzE2NDYiLCJ0IjoiNDU4NjEifQ==', // supported parameters: {
query: 'aff=eyJ3IjoiMTQ1ODYiLCJsIjoiMzE2NDYiLCJ0IjoiNDU4NjEifQ==', // supported
},
comment: '$25 per signup', comment: '$25 per signup',
}, },
]; ];