Skip to content

Commit 200b37a

Browse files
committedJul 3, 2015
pulling out/deleting keychain AFTER everythin else is deleted, since some actions remove keychain entries
1 parent ab9a2c8 commit 200b37a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎models/users.lisp

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@
166166
(map 'list (lambda (i) (gethash "id" i)) collection))))
167167
(alet ((notes (ids (get-all-notes user-id nil)))
168168
(boards (ids (get-all-boards user-id nil)))
169-
(personas (ids (get-user-personas user-id)))
170-
(keychain (ids (get-user-keychain user-id))))
169+
(personas (ids (get-user-personas user-id))))
171170
(walk
172171
(all (mapcar (lambda (n) (delete-note user-id n)) notes))
173172
(all (mapcar (lambda (b) (delete-board user-id b)) boards))
174173
(all (mapcar (lambda (p) (delete-persona user-id p)) personas))
175-
(all (mapcar (lambda (k) (delete-keychain-entry user-id k)) keychain))
174+
(alet ((keychain (ids (get-user-keychain user-id))))
175+
(all (mapcar (lambda (k) (delete-keychain-entry user-id k)) keychain)))
176176
(delete-user-record user-id)
177177
(delete-sync-items user-id :only-affects-user t)))))
178178

0 commit comments

Comments
 (0)