Skip to content

Commit

Permalink
Fix: Fix background parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Jan 6, 2025
1 parent d4b2134 commit 5e1231c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/sonolus_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SonolusController < ApplicationController
before_action do
params.permit(:c_background)
background_version =
params[:c_background].then { it.delete_prefix("v").to_i }
params[:c_background]&.then { it.delete_prefix("v").to_i }
background_version = 3 unless VALID_BACKGROUND_VERSIONS.include?(
background_version
)
Expand Down

0 comments on commit 5e1231c

Please sign in to comment.