fix: srs cards

close #4521
This commit is contained in:
Tienson Qin
2022-03-10 18:21:34 +08:00
parent a57e25cc82
commit 2e340ca1c6
2 changed files with 41 additions and 31 deletions

View File

@@ -348,7 +348,9 @@
result))
db (or db' db)
f #(execute-query! repo-url db k tx cache)]
(if custom?
(if (and custom?
;; modifying during cards review need to be executed immediately
(not (:cards-query? (meta query))))
(async/put! (state/get-reactive-custom-queries-chan) [f query])
(f)))
(catch js/Error e