Uppercase

This commit is contained in:
Owen
2025-10-25 16:20:50 -07:00
parent 5b61742075
commit 5940bbd498

View File

@@ -527,7 +527,7 @@ export async function updateProxyResources(
if ( if (
existingRule.action !== getRuleAction(rule.action) || existingRule.action !== getRuleAction(rule.action) ||
existingRule.match !== rule.match.toUpperCase() || existingRule.match !== rule.match.toUpperCase() ||
existingRule.value !== rule.value existingRule.value !== rule.value.toUpperCase()
) { ) {
validateRule(rule); validateRule(rule);
await trx await trx
@@ -535,7 +535,7 @@ export async function updateProxyResources(
.set({ .set({
action: getRuleAction(rule.action), action: getRuleAction(rule.action),
match: rule.match.toUpperCase(), match: rule.match.toUpperCase(),
value: rule.value value: rule.value.toUpperCase(),
}) })
.where( .where(
eq(resourceRules.ruleId, existingRule.ruleId) eq(resourceRules.ruleId, existingRule.ruleId)
@@ -547,7 +547,7 @@ export async function updateProxyResources(
resourceId: existingResource.resourceId, resourceId: existingResource.resourceId,
action: getRuleAction(rule.action), action: getRuleAction(rule.action),
match: rule.match.toUpperCase(), match: rule.match.toUpperCase(),
value: rule.value, value: rule.value.toUpperCase(),
priority: index + 1 // start priorities at 1 priority: index + 1 // start priorities at 1
}); });
} }
@@ -705,7 +705,7 @@ export async function updateProxyResources(
resourceId: newResource.resourceId, resourceId: newResource.resourceId,
action: getRuleAction(rule.action), action: getRuleAction(rule.action),
match: rule.match.toUpperCase(), match: rule.match.toUpperCase(),
value: rule.value, value: rule.value.toUpperCase(),
priority: index + 1 // start priorities at 1 priority: index + 1 // start priorities at 1
}); });
} }