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))
|
(defmethod render-result ((res result/success))
|
||||||
(with-slots (message msg-id) res
|
(with-slots (message msg-id) res
|
||||||
(cl-json:encode-json
|
(cl-json:encode-json-to-string
|
||||||
`((STATUS . "OK")
|
`((STATUS . "OK")
|
||||||
(MESSAGE . ,message)
|
(MESSAGE . ,message)
|
||||||
(MSGID . ,msg-id)))))
|
(MSGID . ,msg-id)))))
|
||||||
|
|
||||||
(defmethod render-result ((res result/error))
|
(defmethod render-result ((res result/error))
|
||||||
(with-slots (message msg-id) res
|
(with-slots (message msg-id) res
|
||||||
(cl-json:encode-json
|
(cl-json:encode-json-to-string
|
||||||
`((STATUS . "ERROR")
|
`((STATUS . "ERROR")
|
||||||
(MESSAGE . ,message)
|
(MESSAGE . ,message)
|
||||||
(MSGID . ,msg-id)))))
|
(MSGID . ,msg-id)))))
|
||||||
|
|
Loading…
Reference in New Issue