Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db/ls throws an error if non-object entries are present #24

Open
chr15m opened this issue Nov 21, 2022 · 0 comments
Open

db/ls throws an error if non-object entries are present #24

chr15m opened this issue Nov 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@chr15m
Copy link
Owner

chr15m commented Nov 21, 2022

----- Error --------------------------------------
Message:  Cannot create property 'kind' on string '53b0b85e-25f3-4e2c-b1a2-e65e2dc3403b'
Location: sitefox/db.cljs:73:25

----- Context ------------------------------------
69:     (.query (or db (client)) (str "select * from keyv where key like '" kv-ns ":" (or pre "") "%'"))
70:     (.then #(.map % (fn [row]
71:                       (let [k (aget row "key")
72:                             v (aget (js/JSON.parse (aget row "value")) "value")]
73:                         (aset v "kind" k)
                            ^--- Cannot create property 'kind' on string '53b0b85e-25f3-4e2c-b1a2-e65e2dc3403b'
74:                         v))))
75:     (.then (if filter-function
76:              #(.filter % filter-function)
77:              identity))))
@chr15m chr15m added the bug Something isn't working label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant