From 5e18f28cb59154410d4177f75dfbf24382726a24 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Thu, 24 Mar 2022 17:12:48 -0500 Subject: [bugfix] edited oneliners end up in the local cache --- lib/client.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/client.lisp b/lib/client.lisp index 61c3130..b39e0ac 100644 --- a/lib/client.lisp +++ b/lib/client.lisp @@ -280,8 +280,11 @@ running the body. If such a oneliner can be found." (api:request-with (:body (oneliner-to-json-body local) :content-type "application/json") - (api:patch--oneliner-entry-edit (oneliner-id ol) :token (api-token)) - ;(merge-oneliners (list new-item)) ;;TODO: this is broken, wait for API update. + (let ((updated + (jonathan:parse + (api:patch--oneliner-entry-edit (oneliner-id ol) :token (api-token))))) + (merge-oneliners (list updated))) + (format t "Edits accepted~%"))))))) ;;TODO: need to sync cache here. -- cgit v1.2.3