From de37389b416b17e28c80073f5877ee7a06ac3505 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 9d040ec0..7d08384c 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;