Skip to content

Commit

Permalink
bugfix cbrain system check refactoring aces#1454
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed Jan 13, 2025
1 parent bd8bcc0 commit 48025cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrainPortal/lib/cbrain_system_checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def self.a045_ensure_syncstatus_is_clean #:nodoc:
puts "C> \t- No SyncStatus objects are associated with obsolete resources."
end
ss_uids = SyncStatus.where({}).pluck(:userfile_id) || []
uids = Userfile.where({}).ids(:id) || []
uids = Userfile.where({}).ids || []
bad_ids = (ss_uids - uids).uniq
if bad_ids.size > 0
SyncStatus.where(:userfile_id => nil).destroy_all rescue true
Expand Down

0 comments on commit 48025cf

Please sign in to comment.