Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@travis
Created March 27, 2014 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travis/9798738 to your computer and use it in GitHub Desktop.
Save travis/9798738 to your computer and use it in GitHub Desktop.
(defn watchable-projects [user]
(go-catch
(let [accessible-projects-query-ch
(accessible-projects-query user)
watched-projects-ch
(watched-projects user)
accessible-projects-ch
(parse/find (<? accessible-projects-query-ch))]
(set/difference (set (<? accessible-projects-ch))
(set (<? watched-projects-ch))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment