remove unnecessary find module_app

This commit is contained in:
邱博亞 2023-04-11 21:41:13 +08:00
parent 5c35c42ed3
commit 0b86a3b205
1 changed files with 0 additions and 4 deletions

View File

@ -379,10 +379,6 @@ class Admin::RulingTimersController < OrbitMemberController
redirect_to settings_admin_ruling_timers_path and return redirect_to settings_admin_ruling_timers_path and return
end end
def set_setting def set_setting
@module_app = ModuleApp.where(:key=>@app_title).first
if @module_app.nil?
@module_app = OrbitMemberModule.where(:key=>@app_title).first
end
@setting = RulingTimerSetting.first @setting = RulingTimerSetting.first
if @setting.nil? if @setting.nil?
@setting = RulingTimerSetting.create @setting = RulingTimerSetting.create