rubodog
This commit is contained in:
parent
bc6806aa89
commit
9fadeea3fe
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@ module UseCase
|
||||||
status: 201,
|
status: 201,
|
||||||
resource: question,
|
resource: question,
|
||||||
extra: {
|
extra: {
|
||||||
inbox:
|
inbox:,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue