Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix see-also. All API functions should work.

  • Loading branch information...
commit e80dc275085cebe262f572277035fd7e6efeb9d4 1 parent 914eb16
@dakrone dakrone authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/cd_wsapi/core.clj
View
11 src/cd_wsapi/core.clj
@@ -220,12 +220,11 @@
:body (encode-to-str
(with-connection db
(transaction
- (when-let [id (get-id ns name)]
- (when-let [see-also-ids (with-query-results
- rs
- ["select to_id from see_alsos where from_id = ?" id]
- (doall rs))]
- (map format-see-also see-also-ids))))))}))
+ (when-let [see-also-ids (with-query-results
+ rs
+ ["select to_id from flat_see_alsos_view where ns = ? and function = ?" ns name]
+ (doall rs))]
+ (map format-see-also see-also-ids)))))}))
Please sign in to comment.
Something went wrong with that request. Please try again.