This commit is contained in:
Georg Gadinger 2023-02-13 20:14:20 +01:00
parent bc6806aa89
commit 9fadeea3fe
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ class InboxController < ApplicationController
after_action :mark_inbox_entries_as_read, only: %i[show] after_action :mark_inbox_entries_as_read, only: %i[show]
def show # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def show # rubocop:disable Metrics/MethodLength
find_author find_author
find_inbox_entries find_inbox_entries

View File

@ -27,8 +27,8 @@ module UseCase
status: 201, status: 201,
resource: question, resource: question,
extra: { extra: {
inbox: inbox:,
} },
} }
end end

View File

@ -9,9 +9,9 @@ module UseCase
def call def call
question = ::Question.create!( question = ::Question.create!(
content: content, content:,
author_is_anonymous: false, author_is_anonymous: false,
author_identifier: author_identifier, author_identifier:,
user: source_user, user: source_user,
direct: false direct: false
) )
@ -23,7 +23,7 @@ module UseCase
{ {
status: 201, status: 201,
resource: question resource: question,
} }
end end