update-repo-state should call db/update-repo-state

This commit is contained in:
Rob Culliton 2018-04-11 14:02:13 -04:00 committed by Tetiana Churikova
parent 1a50f9f607
commit 82c2b6be47

View File

@ -34,7 +34,7 @@
(defn update-repo-state (defn update-repo-state
[repo-id repo-state] [repo-id repo-state]
(jdbc/with-db-connection [con-db *db*] (jdbc/with-db-connection [con-db *db*]
(db/update-repo-name con-db {:repo_id repo-id (db/update-repo-state con-db {:repo_id repo-id
:repo_state repo-state}))) :repo_state repo-state})))
(defn get-repo (defn get-repo
"Get a repo from DB given it's full name (owner/repo-name)" "Get a repo from DB given it's full name (owner/repo-name)"