Use configured orderby without URL encoding

This commit is contained in:
2026-03-05 12:57:08 +10:30
parent a110a60f0d
commit 2815297c25
+1 -1
View File
@@ -77,7 +77,7 @@ module.exports = function(RED) {
const page = parseInt(pageRaw, 10) const page = parseInt(pageRaw, 10)
const apikeyRaw = msg.apikey || config.apikey const apikeyRaw = msg.apikey || config.apikey
const whatRaw = config.what const whatRaw = config.what
const orderby = encodeURIComponent(msg.orderby || config.orderby); const orderby = config.orderby;
if (!whatRaw || String(whatRaw).trim().length === 0) { if (!whatRaw || String(whatRaw).trim().length === 0) {
node.status({ fill: "red", shape: "ring", text: "Invalid config: 'what' is required" }) node.status({ fill: "red", shape: "ring", text: "Invalid config: 'what' is required" })