Skip to content

Commit

Permalink
org-persist: Fix expiry check
Browse files Browse the repository at this point in the history
* lisp/org-persist.el (org-persist--gc-expired-p): Fix incorrect plist
key.
  • Loading branch information
yantar92 committed Jun 17, 2022
1 parent 41b7410 commit 9b00f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/org-persist.el
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ FORMAT and ARGS are passed to `message'."
(`nil t)
(`never nil)
((pred numberp)
(when (plist-get ,collection :access-time)
(<= (float-time) (+ (plist-get ,collection :access-time) (* ,cnd 24 60 60)))))
(when (plist-get ,collection :last-access)
(<= (float-time) (+ (plist-get ,collection :last-access) (* ,cnd 24 60 60)))))
((pred functionp)
(funcall ,cnd ,collection))
(_ (error "org-persist: Unsupported expiry type %S" ,cnd))))
Expand Down

0 comments on commit 9b00f4b

Please sign in to comment.