From f671410b7d1a3ce601cfd88cd9185a64634a2e73 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 6 Mar 2024 15:56:06 +0100 Subject: [PATCH] added array brackets around the accounting record that is sent --- pepexample/pep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pepexample/pep.js b/pepexample/pep.js index 2732f7c..72c9e6e 100644 --- a/pepexample/pep.js +++ b/pepexample/pep.js @@ -402,7 +402,7 @@ function buildAccountingRecord(context){ function sendAccountingRecord(context){ log(context, "Inside send accounting"); - context.request.subrequest("/accounting", { detached : true, body : JSON.stringify(context.record) }) + context.request.subrequest("/accounting", { detached : true, body : JSON.stringify([context.record]) }) return context }