From fcbf26e7758da748c7ca15225d4951b3189b07a3 Mon Sep 17 00:00:00 2001 From: kagel Date: Fri, 9 Sep 2016 03:35:28 +0300 Subject: [PATCH] Add multisig wallet owners --- env/dev/resources/logback.xml | 8 ++++---- resources/sql/queries.sql | 9 ++++++++- src/clj/commiteth/db/users.clj | 6 ++++++ src/clj/commiteth/eth/core.clj | 23 +++++++++++++++++++++++ src/clj/commiteth/eth/multisig_wallet.clj | 14 ++++++++++++++ src/clj/commiteth/scheduler.clj | 13 +++++++++---- 6 files changed, 64 insertions(+), 9 deletions(-) create mode 100644 src/clj/commiteth/eth/multisig_wallet.clj 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! :