Fix calls to users/create-user

* remove extraneus parameter to users/create-user in pull_request
  webhook handler (Fixes #54)
* fix db test
This commit is contained in:
Teemu Patja 2017-04-12 12:36:53 +03:00
parent f1146d5a83
commit d6aaa2dcea
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 1 additions and 3 deletions

View File

@ -131,7 +131,7 @@
(first) (first)
(ensure-bounty-issue owner repo))] (ensure-bounty-issue owner repo))]
(log/debug "Referenced bounty issue found" repo bounty-issue-number) (log/debug "Referenced bounty issue found" repo bounty-issue-number)
(users/create-user user-id login name nil avatar_url nil) (users/create-user user-id login name nil avatar_url)
(let [issue (github/get-issue owner repo bounty-issue-number) (let [issue (github/get-issue owner repo bounty-issue-number)
pr-data {:repo_id repo-id pr-data {:repo_id repo-id
:pr_id id :pr_id id

View File

@ -26,7 +26,6 @@
:name "Linus Torvalds" :name "Linus Torvalds"
:avatar_url "" :avatar_url ""
:email nil :email nil
:token "not null"
:address "address" :address "address"
:created nil})))) :created nil}))))
(is (= {:id 1 (is (= {:id 1
@ -34,7 +33,6 @@
:name "Linus Torvalds" :name "Linus Torvalds"
:email nil :email nil
:avatar_url "" :avatar_url ""
:token "not null"
:address "address" :address "address"
:created nil} :created nil}
(db/get-user t-conn {:id 1}))))) (db/get-user t-conn {:id 1})))))