Appease the robot dog

This commit is contained in:
Andreas Nedbal 2022-08-20 21:22:20 +02:00 committed by Andreas Nedbal
parent bedd29f7e8
commit 3bb91932b5
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Moderation::ReportsController < ApplicationController
before_action :authenticate_user!
@ -16,9 +18,9 @@ class Moderation::ReportsController < ApplicationController
private
def list_reports(type:, last_id:, size: nil)
cursor_params = { last_id: last_id, size: size }.compact
cursor_params = { last_id:, size: }.compact
if type == 'all'
if type == "all"
Report.cursored_reports(**cursor_params)
else
Report.cursored_reports_of_type(type, **cursor_params)