From 0cce4f80857881561ace357c316f89e8a95e5379 Mon Sep 17 00:00:00 2001 From: "Peter.Morton" Date: Tue, 7 Nov 2023 12:26:00 -0600 Subject: [PATCH] Use stringify to escape newlines on value. Fixes #1 --- src/api/routes/tps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/tps.js b/src/api/routes/tps.js index a5913aa..dc6d0a7 100644 --- a/src/api/routes/tps.js +++ b/src/api/routes/tps.js @@ -125,7 +125,7 @@ router.post("/", async (req, res, next) => { { "@type" : "vcfg:PropertyUpdateOrCreate", "vcfg:name" :"${property.name}", - "vcfg:value" : "${property.value}" + "vcfg:value" : ${JSON.stringify(property.value)} } ]`;