diff --git a/env/dev/resources/logback.xml b/env/dev/resources/logback.xml index df633fb..d954983 100644 --- a/env/dev/resources/logback.xml +++ b/env/dev/resources/logback.xml @@ -1,6 +1,6 @@ - + @@ -32,8 +32,8 @@ - - - + + + diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index d945e65..7a57865 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -40,6 +40,12 @@ SELECT * FROM users WHERE id = :id; +-- :name get-repo-owner :? :1 +SELECT * +FROM users u + INNER JOIN repositories r ON r.user_id = u.id +WHERE r.repo_id = :repo_id; + -- Repositories -------------------------------------------------------------------- -- :name toggle-repository! :