From 43becacf9fdb0dd9aa4564bcf3bd1cadb53e4cef Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Thu, 24 Mar 2022 16:41:31 -0500 Subject: [bugfix] oneliner edit endpoint returns the updated entry as json --- clpmfile.lock | 4 ++-- src/main.lisp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clpmfile.lock b/clpmfile.lock index 4c43c1c..3f5fabc 100644 --- a/clpmfile.lock +++ b/clpmfile.lock @@ -67,9 +67,9 @@ ("hunchentoot")) ("ironclad" :version "2022-02-20" :source "quicklisp" :systems ("ironclad")) ("jonathan" :version "2020-09-25" :source "quicklisp" :systems ("jonathan")) -("lambda-riffs" :version (:commit "83b4f38ffb34dc39164024592e6a6a9743ae53f1") +("lambda-riffs" :version (:commit "2964006da06e8c5fb2a068f33611ae72cbf7baf0") :source :implicit-vcs :systems ("lambda-riffs")) -("lazybones" :version (:commit "02874f575215f9665d99943a79541d4f849d50c3") +("lazybones" :version (:commit "41075c2bde94bb43f07ee5598dc57965436634f6") :source :implicit-vcs :systems ("lazybones" "lazybones-hunchentoot")) ("lazybones-client" :version (:commit "d87613168212893714e17b4ab5feb3d9e9e16e0c") :source :implicit-vcs diff --git a/src/main.lisp b/src/main.lisp index abf5405..f0c2ea5 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -809,7 +809,7 @@ admin privileges are allowed to perform this action." (http-err 403)) (validate-oneliner-edit-plist (lzb:request-body)) (apply 'edit-oneliner entry (api-contributor token) (lzb:request-body)) - "true") + (to-json entry)) (defendpoint* :get "/oneliner/:entry a-oneliner-id:" () () "Gets a oneliner by id." -- cgit v1.2.3