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", "name": "traxxx",
"version": "1.248.37", "version": "1.248.38",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.248.37", "version": "1.248.38",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.458.0", "@aws-sdk/client-s3": "^3.458.0",

View File

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

View File

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