alright
This commit is contained in:
parent
5aab94207a
commit
76c614ea66
|
@ -34,8 +34,10 @@ class Ajax::InboxController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
a = nil
|
||||
|
||||
begin
|
||||
inbox.answer params[:answer], current_user
|
||||
a = inbox.answer params[:answer], current_user
|
||||
rescue
|
||||
@status = :err
|
||||
@message = "An error occurred"
|
||||
|
@ -43,6 +45,10 @@ class Ajax::InboxController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
current_user.services.each do |service|
|
||||
service.post a
|
||||
end
|
||||
|
||||
@status = :okay
|
||||
@message = "Successfully answered question."
|
||||
@success = true
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
class ShareWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: :share
|
||||
|
||||
def perform(answer_id)
|
||||
# fuck this… for now
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue