Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
b62c705b76 1.248.38 2026-02-07 17:00:43 +01:00
DebaucheryLibrarian
4dd236d5da Handling independent channel banner configurations. 2026-02-07 17:00:41 +01:00
3 changed files with 9 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.248.37",
"version": "1.248.38",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.248.37",
"version": "1.248.38",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.248.37",
"version": "1.248.38",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@@ -1070,16 +1070,19 @@ exports.seed = async (knex) => {
const affiliate = affiliates.find((aff) => aff.id === affiliateId)
|| affiliates.find((aff) => aff.channel === resolvedChannel)
|| affiliates.find((aff) => aff.network === resolvedNetwork);
|| affiliates.find((aff) => aff.network === resolvedNetwork)
|| affiliates.find((aff) => aff.channel === resolvedNetwork); // independent channel
if (!affiliate) {
console.warn('UNMATCHED AFFILIATE', file);
}
const isIndependent = affiliate?.channel && affiliate.channel === resolvedNetwork;
return {
file,
network: resolvedNetwork,
channel: resolvedChannel,
network: isIndependent ? null : resolvedNetwork,
channel: isIndependent ? resolvedNetwork : resolvedChannel,
affiliateId,
affiliate: getAffiliateId(affiliate),
banner,