Throw exception when user cannot be found
This commit is contained in:
parent
a1663b9f9d
commit
b0c787bbc7
@ -11,7 +11,7 @@ class WebhooksController < ApplicationController
|
||||
head :unprocessable_entity and return
|
||||
end
|
||||
|
||||
user = User.find_by(ln_account: payload[:user_login])
|
||||
user = User.find_by!(ln_account: payload[:user_login])
|
||||
|
||||
# TODO make configurable
|
||||
notify_xmpp(user.address, payload[:amount], payload[:memo])
|
||||
|
Loading…
x
Reference in New Issue
Block a user