Skip to content

Commit

Permalink
DBP-830 Uppercase to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Aug 26, 2024
1 parent 6beed08 commit 0d5bb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/room.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def set_voice_brige

def self.delete_expired_rooms
expired_rooms = Room.where(deletion_date: ...Time.current)
AutomatedDeletionOfExpiredRoomsId = Setting.find_by(name: 'AutomatedDeletionOfExpiredRooms')&.id
is_automated_deletion_enabled = SiteSetting.find_by(setting_id: AutomatedDeletionOfExpiredRoomsId)&.value == 'true'
automatedDeletionOfExpiredRoomsId = Setting.find_by(name: 'AutomatedDeletionOfExpiredRooms')&.id
is_automated_deletion_enabled = SiteSetting.find_by(setting_id: automatedDeletionOfExpiredRoomsId)&.value == 'true'

if expired_rooms.any? && is_automated_deletion_enabled
size = expired_rooms.size
Expand Down

0 comments on commit 0d5bb41

Please sign in to comment.