Skip to content

Commit 90ad44c

Browse files
committed
Fix for get and set config (correct result handling)
1 parent 2d83d47 commit 90ad44c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

MDX2JSON/REST.cls.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,18 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
265265
<ClassMethod>1</ClassMethod>
266266
<FormalSpec>Application</FormalSpec>
267267
<ReturnType>%Status</ReturnType>
268-
<Implementation><![CDATA[ return ##class(MDX2JSON.Users).GetConfig(Application)
268+
<Implementation><![CDATA[
269+
w "{""Config"":""" _ ##class(MDX2JSON.Users).GetConfig(Application) _ """}"
270+
return $$$OK
269271
]]></Implementation>
270272
</Method>
271273

272274
<Method name="SetConfig">
273275
<Description>
274-
Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
276+
Wrapper for ##class(MDX2JSON.Users).SetConfig()</Description>
275277
<ClassMethod>1</ClassMethod>
276278
<ReturnType>%Status</ReturnType>
277-
<Implementation><![CDATA[
278-
w "{""Config"":"""_##class(MDX2JSON.Users).SetConfig($$$R("Application"),$$$R("Config"))_"""}"
279-
return $$$OK
279+
<Implementation><![CDATA[ return ##class(MDX2JSON.Users).SetConfig($$$R("Application"),$$$R("Config"))
280280
]]></Implementation>
281281
</Method>
282282

0 commit comments

Comments
 (0)