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:
parent
f1146d5a83
commit
d6aaa2dcea
|
@ -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
|
||||||
|
|
|
@ -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})))))
|
||||||
|
|
Loading…
Reference in New Issue