From 26a106b0d9687be8448e37658887c8bc2937804e Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Tue, 18 Aug 2026 20:00:23 -0600 Subject: notification cleanup and message marking --- lisp/service/auth-service.lisp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lisp/service/auth-service.lisp') diff --git a/lisp/service/auth-service.lisp b/lisp/service/auth-service.lisp index 8450e64..0862147 100644 --- a/lisp/service/auth-service.lisp +++ b/lisp/service/auth-service.lisp @@ -20,15 +20,15 @@ (when (null (errormsg ,instance)) ,@body) (when (location-p ,instance) - (setf (session-value :message) nil) - (setf (session-value :errormsg) nil)) + (setf (message instance) nil) + (setf (errormsg instance) nil)) (org-ckons-json::objects-to-json `(,,instance)))) (defmacro with-auth-raw ((instance auth-service roles) &body body) `(let ((,instance (make-instance ',auth-service :roles ,roles))) (when (location-p ,instance) - (setf (session-value :message) nil) - (setf (session-value :errormsg) nil)) + (setf (message instance) nil) + (setf (errormsg instance) nil)) (when (null (errormsg ,instance)) ,@body))) @@ -36,13 +36,13 @@ `(let ((,instance (make-instance ',rest-service))) ,@body (when (location-p ,instance) - (setf (session-value :message) nil) - (setf (session-value :errormsg) nil)) + (setf (message instance) nil) + (setf (errormsg instance) nil)) (org-ckons-json::objects-to-json `(,,instance)))) (defmacro with-noauth-raw ((instance rest-service) &body body) `(let ((,instance (make-instance ',rest-service))) (when (location-p ,instance) - (setf (session-value :message) nil) - (setf (session-value :errormsg) nil)) + (setf (message instance) nil) + (setf (errormsg instance) nil)) ,@body)) -- cgit v1.3