Compare commits
2 Commits
1e089f731a
...
19f0752b0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 19f0752b0f | |||
| 471ee42c0e |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx-web",
|
"name": "traxxx-web",
|
||||||
"version": "0.42.20",
|
"version": "0.42.21",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.42.20",
|
"version": "0.42.21",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@brillout/json-serializer": "^0.5.8",
|
"@brillout/json-serializer": "^0.5.8",
|
||||||
"@dicebear/collection": "^7.0.5",
|
"@dicebear/collection": "^7.0.5",
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
"overrides": {
|
"overrides": {
|
||||||
"vite": "$vite"
|
"vite": "$vite"
|
||||||
},
|
},
|
||||||
"version": "0.42.20",
|
"version": "0.42.21",
|
||||||
"imports": {
|
"imports": {
|
||||||
"#/*": "./*.js"
|
"#/*": "./*.js"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,24 +169,6 @@ const entityUrl = (() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return entity.affiliateUrl || entity.url;
|
return entity.affiliateUrl || entity.url;
|
||||||
|
|
||||||
/*
|
|
||||||
// affiliate might be inherited, only use full URL when directly associated
|
|
||||||
if (entity.affiliate?.url && entity.affiliate.entityId === entity.id) {
|
|
||||||
return entity.affiliate.url;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (entity.affiliate?.parameters) {
|
|
||||||
const newParams = new URLSearchParams({
|
|
||||||
...Object.fromEntries(new URL(entity.url).searchParams),
|
|
||||||
...Object.fromEntries(new URLSearchParams(entity.affiliate.parameters)),
|
|
||||||
});
|
|
||||||
|
|
||||||
return `${entity.url}?${newParams}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return entity.url;
|
|
||||||
*/
|
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ export async function fetchEntitiesById(entityIds, options = {}, reqUser) {
|
|||||||
.whereIn('entities.parent_id', entityIds)
|
.whereIn('entities.parent_id', entityIds)
|
||||||
.whereNot('type', 'info')
|
.whereNot('type', 'info')
|
||||||
.orderBy([
|
.orderBy([
|
||||||
|
{ column: knex.raw('array_position(array[\'network\', \'channel\']::varchar[], type)'), order: 'asc' },
|
||||||
{ column: 'independent', order: 'desc' },
|
{ column: 'independent', order: 'desc' },
|
||||||
{ column: 'slug', order: 'asc' },
|
{ column: 'slug', order: 'asc' },
|
||||||
]) : [],
|
]) : [],
|
||||||
|
|||||||
2
static
2
static
Submodule static updated: 8ba0b203fa...d1ce4d1258
Reference in New Issue
Block a user