From 2a39d38445e71879f509ea1318de5f25eecb8126 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 20 Feb 2024 22:37:16 -0300 Subject: [PATCH] fix(basic.gblib): POST/PUT bug fix. @othonlima --- packages/basic.gblib/services/SystemKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 9d040ec05..7d08384cc 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -1864,7 +1864,7 @@ export class SystemKeywords { }; if (typeof (data) === 'object') { - options['json'] = data; + options['body'] = JSON.stringify(data); } else { options['body'] = data; @@ -1898,7 +1898,7 @@ export class SystemKeywords { }; if (typeof (data) === 'object') { - options['json'] = data; + options['body'] = JSON.stringify(data); } else { options['body'] = data;