Remove service reference in question generation

This commit is contained in:
Andreas Nedbal 2023-02-05 19:35:59 +01:00 committed by Andreas Nedbal
parent da0a5fb98d
commit 7589d66686
1 changed files with 1 additions and 2 deletions

View File

@ -37,11 +37,10 @@ class InboxController < ApplicationController
user: current_user)
inbox = Inbox.create!(user: current_user, question_id: question.id, new: true)
services = current_user.services
respond_to do |format|
format.turbo_stream do
render turbo_stream: turbo_stream.prepend("entries", partial: "inbox/entry", locals: { i: inbox, services: })
render turbo_stream: turbo_stream.prepend("entries", partial: "inbox/entry", locals: { i: inbox })
inbox.update(new: false)
end