encode-to-string, instead of returning nil
This commit is contained in:
parent
678bcc5d3d
commit
cbda9609f3
|
@ -40,14 +40,14 @@
|
|||
|
||||
(defmethod render-result ((res result/success))
|
||||
(with-slots (message msg-id) res
|
||||
(cl-json:encode-json
|
||||
(cl-json:encode-json-to-string
|
||||
`((STATUS . "OK")
|
||||
(MESSAGE . ,message)
|
||||
(MSGID . ,msg-id)))))
|
||||
|
||||
(defmethod render-result ((res result/error))
|
||||
(with-slots (message msg-id) res
|
||||
(cl-json:encode-json
|
||||
(cl-json:encode-json-to-string
|
||||
`((STATUS . "ERROR")
|
||||
(MESSAGE . ,message)
|
||||
(MSGID . ,msg-id)))))
|
||||
|
|
Loading…
Reference in New Issue